import { useI18n } from '../i18n/context'; const BASE = import.meta.env.BASE_URL || '/'; const logoImg = `${BASE}logo.png`; interface PrintHeaderProps { subtitle?: string; } function PrintHeader({ subtitle }: PrintHeaderProps) { const { t } = useI18n(); const now = new Date(); const dateStr = now.toLocaleDateString('fr-FR', { day: '2-digit', month: '2-digit', year: 'numeric', hour: '2-digit', minute: '2-digit' }); return (
Logo PROSERVE Report {subtitle && — {subtitle}} {t('print.generatedOn')} {dateStr}
); } export default PrintHeader;