import { ReactNode } from 'react' import { useTranslation } from '@/i18n' export interface DaysBreakdownProps { breakdown: Array<{ type: string; count: number }> } export function DaysBreakdown({ breakdown }: DaysBreakdownProps): ReactNode { const { t } = useTranslation() if (!breakdown || breakdown.length === 0) { return (
{t('daysBreakdown.empty')}
| {t('daysBreakdown.typeHeader')} | {t('daysBreakdown.daysHeader')} |
|---|---|
| {item.type} | {item.count} |