interface PeriodSelectorProps { value: number; onChange: (days: number) => void; animationActive: boolean; onAnimate: () => void; } const PERIODS = [ { label: '24h', days: 1 }, { label: '7 jours', days: 7 }, { label: '30 jours', days: 30 }, ]; export function PeriodSelector({ value, onChange, animationActive, onAnimate }: PeriodSelectorProps) { return (
{PERIODS.map(({ label, days }) => ( ))}
); }