import type { InertiaLinkProps } from '@inertiajs/vue3';
import type { LucideIcon } from '@lucide/vue';

export type BreadcrumbItem = {
    title: string;
    href: NonNullable<InertiaLinkProps['href']>;
};

export type NavItem = {
    /** Display text, or a translation key (layouts run it through `t()`). */
    title: string;
    href: NonNullable<InertiaLinkProps['href']>;
    icon?: LucideIcon;
    isActive?: boolean;
    /** Which shared count to show as an unread badge. */
    badge?: 'notifications' | 'messages';
};

/** Entry of the role-aware navigation (see `lib/navigation.ts`). `title` is a `common.nav.*` translation key. */
export type SpotNavItem = {
    key: string;
    title: string;
    href: string;
    icon: LucideIcon;
    /** Which shared count (`page.props.counts`) to show as an unread badge. */
    badge?: 'notifications' | 'messages';
    /** Match only the exact URL (for home pages that prefix other sections). */
    exact?: boolean;
};
