import { useLeftPanel } from '@/hooks/useLeftPanel' import { cn } from '@/lib/utils' import { IconLayoutSidebar } from '@tabler/icons-react' import { ReactNode } from '@tanstack/react-router' import { platform } from '@tauri-apps/plugin-os' type HeaderPageProps = { children: ReactNode } const HeaderPage = ({ children }: HeaderPageProps) => { const platformName = platform() const { open, setLeftPanel } = useLeftPanel() return (
{!open && ( )} {children}
) } export default HeaderPage