import { Link } from '@inertiajs/react'; import type { PropsWithChildren } from 'react'; import Heading from '@/components/heading'; import { Button } from '@/components/ui/button'; import { Separator } from '@/components/ui/separator'; import { useCurrentUrl } from '@/hooks/use-current-url'; import { cn, toUrl } from '@/lib/utils'; import { edit as editAppearance } from '@/routes/appearance'; import { edit } from '@/routes/profile'; import { edit as editSecurity } from '@/routes/security'; import type { NavItem } from '@/types'; const sidebarNavItems: NavItem[] = [ { title: 'Profile', href: edit(), icon: null, }, { title: 'Security', href: editSecurity(), icon: null, }, { title: 'Appearance', href: editAppearance(), icon: null, }, ]; export default function SettingsLayout({ children }: PropsWithChildren) { const { isCurrentOrParentUrl } = useCurrentUrl(); return (