'use client' import Link from 'next/link' import { useTranslations } from 'next-intl' import { ArrowRight, CheckCircle2, FileCheck, FileText, Landmark, ArrowRightLeft, ShieldCheck, } from 'lucide-react' import { cn } from '@/lib/utils' import { ENABLED_EXTENSION_IDS } from '@/lib/extensions/_generated/enabled-extensions' import { getBranding } from '@/lib/branding/service' const branding = getBranding() interface NewUserChecklistProps { onFreshStart: () => void className?: string /** * Whether the active user already has a Skatteverket OAuth connection. * When true the Skatteverket step renders as completed instead of as a CTA. */ hasSkatteverketConnected?: boolean } export default function NewUserChecklist({ onFreshStart, className, hasSkatteverketConnected, }: NewUserChecklistProps) { const t = useTranslations('new_user_checklist') const hasMigration = ENABLED_EXTENSION_IDS.has('arcim-migration') const hasBanking = ENABLED_EXTENSION_IDS.has('enable-banking') const hasSkatteverket = ENABLED_EXTENSION_IDS.has('skatteverket') return (
{t('intro')}
{t('migrate_title')}
{t('migrate_description')}
{t('sie_title')}
{t('sie_description')}
{t('bank_title')}
{hasBanking ? t('bank_description_psd2') : t('bank_description_file')}
{t('skatteverket_connected_title')}
{t('skatteverket_connected_description')}
{t('skatteverket_connect_title')}
{t('skatteverket_connect_description', { appName: branding.appName.toLowerCase() })}
{t('security_note')}