'use client' import { Gamepad2, Globe, Server } from 'lucide-react' import Link from 'next/link' import { usePathname } from 'next/navigation' import { cn } from '@/lib/utils' const TABS = [ { href: '/admin/translations/cms', label: 'CMS', icon: Globe }, { href: '/admin/translations/client', label: 'Client (Nitro)', icon: Gamepad2 }, { href: '/admin/translations/emulator', label: 'Emulator', icon: Server }, ] as const export function TranslationsTabs() { const pathname = usePathname() return (
{TABS.map((t) => { const active = pathname === t.href || pathname.startsWith(`${t.href}/`) const Icon = t.icon return ( {t.label} ) })}
) }