"use client"; import type { Block, FormCheckboxBlockProps } 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 { getEditorFormCheckboxPanelMessages } from "@/features/i18n/messages/editorFormCheckboxPanel"; interface FormCheckboxPropertiesPanelProps { block: Block; selectedBlockId: string | null; updateBlock: (id: string, partial: any) => void; } export function FormCheckboxPropertiesPanel({ block, selectedBlockId, updateBlock }: FormCheckboxPropertiesPanelProps) { const locale = useAppLocale(); const m = getEditorFormCheckboxPanelMessages(locale); if (!selectedBlockId || block.id !== selectedBlockId) return null; const checkboxProps = block.props as FormCheckboxBlockProps; const groupLabelDisplay = checkboxProps.groupLabelDisplay ?? "visible"; return (