import { useState } from "react"; import TemplatesPage from "../../../govoplan-templates/webui/src/features/templates/TemplatesPage"; import { generatedTranslations as templateTranslations } from "../../../govoplan-templates/webui/src/i18n/generatedTranslations"; import "../../../govoplan-templates/webui/src/styles/templates.css"; import Button from "../src/components/Button"; import Dialog from "../src/components/Dialog"; import { DialogForm, DialogSection } from "../src/components/DialogAnatomy"; import { FormGrid } from "../src/components/ContentGrid"; import FormField from "../src/components/FormField"; import { PlatformLanguageProvider } from "../src/i18n/LanguageContext"; import type { AuthInfo } from "../src/types"; const fixtureAuth: AuthInfo = { user: { id: "fixture-user", account_id: "fixture-account", email: "fixture@example.test" }, tenant: { id: "fixture-tenant", name: "Fixture", slug: "fixture" }, scopes: ["templates:template:read", "templates:template:write"], roles: [], groups: [], profile_loaded: true, roles_loaded: true, groups_loaded: true }; export default function DialogLayoutScenario({ templates = false, language = "de" }: { templates?: boolean; language?: string }) { const [open, setOpen] = useState(true); if (templates) return ; return setOpen(true)}>Open layout fixture setOpen(false)} footer={<>AbbrechenÄnderungen speichern>} > event.preventDefault()}> {"Lange Auswahlliste ".repeat(20)} Absichtlich breite TabelleLetzte Tabellenspalte ; }