import { useFontSize } from '@/hooks/use-font-size'; import { cn } from '@/lib/utils'; import { LucideIcon, Type } from 'lucide-react'; import { HTMLAttributes } from 'react'; export default function FontSizeToggleTab({ className = '', ...props }: HTMLAttributes) { const { fontSize, setFontSize } = useFontSize(); const tabs: { value: 'normal' | 'large' | 'larger'; icon: LucideIcon; label: string }[] = [ { value: 'normal', icon: Type, label: 'Normalny' }, { value: 'large', icon: Type, label: 'Duży' }, { value: 'larger', icon: Type, label: 'Bardzo duży' }, ]; return (
{tabs.map(({ value, icon: Icon, label }) => ( ))}
); }