import Container from '@/components/container'; import { Button } from '@/components/ui/button'; import { Separator } from '@/components/ui/separator'; import { cn } from '@/lib/utils'; import { type NavItem } from '@/types'; import { Link } from '@inertiajs/react'; import { ListIcon, LockIcon, UserIcon } from 'lucide-react'; import { type PropsWithChildren } from 'react'; const sidebarNavItems: NavItem[] = [ { title: 'Profile', href: '/settings/profile', icon: UserIcon, }, { title: 'Projects', href: '/', icon: ListIcon, }, { title: 'Password', href: '/settings/password', icon: LockIcon, }, ]; export default function SettingsLayout({ children }: PropsWithChildren) { // When server-side rendering, we only render the layout on the client... if (typeof window === 'undefined') { return null; } const currentPath = window.location.pathname; return (
{children}
); }