import { useState } from "react"; import { Avatar, AvatarFallback, Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@godxjp/ui/data-display"; import { Button, Icon, Text } from "@godxjp/ui/general"; import { AppShell, Flex, PageContainer, Sidebar, Topbar, TopbarItem } from "@godxjp/ui/layout"; import type { SidebarSectionProp } from "@godxjp/ui/layout"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "@godxjp/ui/navigation"; import { Bell, Building2, FileText, LayoutDashboard, LogOut, PanelLeftClose, PanelLeftOpen, Settings, Target, Users, } from "lucide-react"; /** * TopbarItem — one interactive cell of a Topbar slot, shaped like part of the bar: full bar * height, the bar's own hover surface, and the focus mark hosted INSIDE the cell. The second bar * below shows the same triggers built from `Button` instead, which is the floating-pill read this * component exists to replace. */ const SECTIONS: SidebarSectionProp[] = [ { label: "会計", items: [ { id: "dashboard", label: "ダッシュボード", icon: LayoutDashboard }, { id: "journal", label: "仕訳", icon: FileText }, ], }, { label: "管理", items: [{ id: "users", label: "ユーザー", icon: Users }] }, ]; export default function Demo() { const [collapsed, setCollapsed] = useState(false); return ( } topbar={ setCollapsed((open) => !open)} > {collapsed ? ( ); }