"use client"; import { useTranslations } from "next-intl"; import { FONT_SIZE_OPTIONS } from "@/lib/font-options"; import { cn } from "@/lib/utils"; export function CaptionSizeControl({ value, onChange, disabled = false }: { value: number | null; onChange: (value: number | null) => void; disabled?: boolean; }) { const t = useTranslations("home"); const labelFor = (option: number | null) => { if (option === null) return t("captionSize.templateDefault"); if (option === 18) return t("captionSize.small"); if (option === 28) return t("captionSize.medium"); if (option === 40) return t("captionSize.large"); return String(option); }; return
; }