import { currencyDecimals } from '../../utils/formatters' interface DayPlanSidebarFooterProps { totalCost: number currency: string t: (key: string, params?: Record) => string } export function DayPlanSidebarFooter({ totalCost, currency, t }: DayPlanSidebarFooterProps) { if (!(totalCost > 0)) return null return (
{t('dayplan.totalCost')} {totalCost.toFixed(currencyDecimals(currency))} {currency}
) }