'use client' import Link from 'next/link' import { usePathname } from 'next/navigation' import { cn } from '@/lib/utils' import { User, Share2 } from 'lucide-react' export default function SettingsLayout({ children }: { children: React.ReactNode }) { const pathname = usePathname() const tabs = [ { name: 'User Management', href: '/settings/users', icon: User }, { name: 'Integrations & Share', href: '/settings/integrations', icon: Share2 }, ] return (
{/* Settings Navigation Tabs */}
{tabs.map((tab) => { const isActive = pathname === tab.href const Icon = tab.icon return ( {tab.name} ) })}
{/* Settings Content */}
{children}
) }