'use client'; import { useTranslations } from 'next-intl'; import { FORM_SELECT_CLASS } from '@/components/shared/formSelectStyles'; import type { TodayChartPeriod } from '@/components/today/chart-periods'; type TodayChartPeriodSelectProps = { value: TodayChartPeriod; options: readonly TodayChartPeriod[]; onChange: (period: TodayChartPeriod) => void; disabled?: boolean; id?: string; }; export function TodayChartPeriodSelect({ value, options, onChange, disabled = false, id, }: TodayChartPeriodSelectProps) { const t = useTranslations('today'); const labelFor = (period: TodayChartPeriod) => { switch (period) { case 'month': return t('periodMonth'); case 'year': return t('periodYear'); default: return t('periodWeek'); } }; return ( ); }