Skip to content
Snippets Groups Projects
index.d.ts 666 B
import { Icons } from "@/components/icons"
import type { Icon } from "lucide-react"

export type NavItem = {
    title: string
    href: string
    disabled?: boolean
}

export type MainNavItem = NavItem

export type SidebarNavItem = {
    title: string
    disabled?: boolean
    external?: boolean
    icon?: keyof typeof Icons
} & (
        | {
            href: string
            items?: never
        }
        | {
            href?: string
            items: NavLink[]
        }
    )

export type SiteConfig = {
    name: string
    description: string
    url: string
    ogImage: string
}

export type DashboardConfig = {
    sidebarNav: SidebarNavItem[]
}