'use client' import Link from 'next/link' import { useTranslations } from 'next-intl' import { AlertTriangle } from 'lucide-react' import { cn } from '@/lib/utils' import { getBranding } from '@/lib/branding/service' interface RetentionNoticeProps { variant: 'company' | 'account' className?: string } /** * Shared BFL retention notice shown before destructive actions that * affect bookkeeping data. Keeps the legal copy consistent between the * account danger zone and the company danger zone. * * Swedish Bokföringslagen (BFL) 7 kap. 2§ requires räkenskapsinformation * to be retained for 7 years. Accounted is the system of record, so deleting * a company or an account does not remove the underlying data: it only * hides it from the UI and anonymizes PII where applicable. */ export function RetentionNotice({ variant, className }: RetentionNoticeProps) { const t = useTranslations('retention_notice') const { appName } = getBranding() const copy = variant === 'company' ? { title: t('company_title'), body: ( <> {t('company_body_prefix', { appName: appName.toLowerCase() })} {t('company_body_link')} {t('company_body_suffix')} ), } : { title: t('account_title'), body: ( <> {t('account_body_prefix')} {t('account_body_link')} {t('account_body_suffix')} ), } return (

{copy.title}

{copy.body}

) }