import { Link } from '@inertiajs/react'; import OrderController from '@/actions/App/Http/Controllers/OrderController'; import ProductController from '@/actions/App/Http/Controllers/ProductController'; import StoreController from '@/actions/App/Http/Controllers/StoreController'; import StoreSettingsController from '@/actions/App/Http/Controllers/StoreSettingsController'; import { cn } from '@/lib/utils'; type Tab = 'design' | 'products' | 'orders' | 'settings'; /** The tabs at the top of every page of one store. */ export default function StoreNav({ slug, current, }: { slug: string; current: Tab; }) { const tabs: { key: Tab; label: string; href: string }[] = [ { key: 'design', label: 'Design', href: StoreController.show.url(slug), }, { key: 'products', label: 'Products', href: ProductController.index.url(slug), }, { key: 'orders', label: 'Orders', href: OrderController.index.url(slug), }, { key: 'settings', label: 'Settings', href: StoreSettingsController.edit.url(slug), }, ]; return ( ); }