import { useState } from "react"; import { Field, FormField, Input, Select, Switch, Textarea } from "@godxjp/ui/data-entry"; import { Button } from "@godxjp/ui/general"; import { Avatar, AvatarFallback } from "@godxjp/ui/data-display"; import { AppShell, Flex, PageContainer, Sidebar, type SidebarSectionProp, Topbar, } from "@godxjp/ui/layout"; import { BookOpen, FileText, LayoutDashboard, ReceiptText, Users } from "lucide-react"; /** * Create form — a real screen: FormField wraps each stacked control (Input / * Select / Textarea), Field pairs the Switch with its label, and the page's * footer holds the primary submit + outline cancel. The canonical data-entry * page, composed only from real @godxjp/ui components. */ const sections: SidebarSectionProp[] = [ { label: "会計", items: [ { id: "dashboard", label: "ダッシュボード", icon: LayoutDashboard }, { id: "journal", label: "仕訳", icon: FileText }, { id: "invoices", label: "請求書", icon: ReceiptText }, { id: "partners", label: "取引先", icon: BookOpen }, ], }, { label: "管理", items: [{ id: "users", label: "ユーザー", icon: Users }] }, ]; export default function Demo() { const [type, setType] = useState("corp"); return ( {}} product={{ name: "CoreBooks", role: "管理コンソール", color: "hsl(var(--primary))" }} /> } topbar={ C } /> } > } >