"use client"; import type { Block, FormRadioBlockProps } from "@/features/editor/state/editorStore"; import { ColorPickerField, TEXT_COLOR_PALETTE } from "@/features/editor/components/ColorPickerField"; import { NumericPropertyControl } from "@/features/editor/components/NumericPropertyControl"; import { useAppLocale } from "@/features/i18n/LocaleProvider"; import { getEditorFormRadioPanelMessages } from "@/features/i18n/messages/editorFormRadioPanel"; interface FormRadioPropertiesPanelProps { block: Block; selectedBlockId: string | null; updateBlock: (id: string, partial: any) => void; } export function FormRadioPropertiesPanel({ block, selectedBlockId, updateBlock }: FormRadioPropertiesPanelProps) { const locale = useAppLocale(); const m = getEditorFormRadioPanelMessages(locale); if (!selectedBlockId || block.id !== selectedBlockId) return null; const radioProps = block.props as FormRadioBlockProps; const groupLabelDisplay = radioProps.groupLabelDisplay ?? "visible"; return (