import { ArrowLeft } from 'lucide-react' import { Link, NavLink, Outlet } from 'react-router-dom' import { cn } from '../../lib/utils' const tabs = [ { to: '/admin', label: 'Dashboard', end: true }, { to: '/admin/topics', label: 'Topics' }, { to: '/admin/tokens', label: 'API Tokens' }, { to: '/admin/users', label: 'Users' }, { to: '/admin/devices', label: 'Devices' }, { to: '/admin/sources', label: 'Sources' }, { to: '/admin/auth', label: 'Auth' }, { to: '/admin/system', label: 'System' }, { to: '/admin/backups', label: 'Backups' }, { to: '/admin/audit-log', label: 'Audit Log' }, ] export function AdminLayout() { return (
Back to app

Admin

{tabs.map((tab) => ( cn( 'shrink-0 border-b-2 px-3 py-2.5 text-sm font-medium transition-colors', isActive ? 'border-accent text-accent-bright' : 'border-transparent text-slate-500 hover:text-slate-300', ) } > {tab.label} ))}
) }