import { useState } from "react"; import { Plus } from "lucide-react"; import { FormGrid, FormLayout, GridItem } from "../src/components/ContentGrid"; import FormField from "../src/components/FormField"; import PasswordField from "../src/components/PasswordField"; import ToggleSwitch from "../src/components/ToggleSwitch"; import TableActionGroup from "../src/components/table/TableActionGroup"; import { PlatformLanguageProvider } from "../src/i18n/LanguageContext"; import { AttachmentRulesDataGrid } from "../../../govoplan-campaign/webui/src/features/campaigns/components/AttachmentRulesOverlay"; import type { AttachmentRule } from "../../../govoplan-campaign/webui/src/features/campaigns/utils/attachments"; import { generatedTranslations } from "../../../govoplan-campaign/webui/src/i18n/generatedTranslations"; import "../../../govoplan-campaign/webui/src/styles/campaign-workspace.css"; /** Real shared controls and Campaign attachment editor; no API writes. */ export default function FormControlLayoutScenario() { const [secret, setSecret] = useState(""); const [checked, setChecked] = useState(false); const [rules, setRules] = useState([]); return

Shared form-control layout

event.preventDefault()}>

Global attachments

Compact actions resist broad consumer styles

, onClick: () => setChecked(true) }]} />
; }