import type { InertiaLinkProps } from "@inertiajs/react";
import type { LucideIcon } from "lucide-react";

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

export type NavItem = {
    title: string;
    href: NonNullable<InertiaLinkProps["href"]>;
    icon?: LucideIcon | null;
    isActive?: boolean;
    /** A count shown on the right of the item — unread messages, for one. */
    badge?: number;
    /**
     * The released part this link opens. A part that is switched off is not
     * offered, because its route answers 404.
     */
    part?: string;
};
