mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-11 18:28:15 +00:00
chore: initial Untitled UI Vite scaffold with FontAwesome Pro
This commit is contained in:
23
src/components/application/app-navigation/config.ts
Normal file
23
src/components/application/app-navigation/config.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { FC, ReactNode } from "react";
|
||||
|
||||
export type NavItemType = {
|
||||
/** Label text for the nav item. */
|
||||
label: string;
|
||||
/** URL to navigate to when the nav item is clicked. */
|
||||
href?: string;
|
||||
/** Icon component to display. */
|
||||
icon?: FC<{ className?: string }>;
|
||||
/** Badge to display. */
|
||||
badge?: ReactNode;
|
||||
/** List of sub-items to display. */
|
||||
items?: { label: string; href: string; icon?: FC<{ className?: string }>; badge?: ReactNode }[];
|
||||
/** Whether this nav item is a divider. */
|
||||
divider?: boolean;
|
||||
};
|
||||
|
||||
export type NavItemDividerType = Omit<NavItemType, "icon" | "label" | "divider"> & {
|
||||
/** Label text for the divider. */
|
||||
label?: string;
|
||||
/** Whether this nav item is a divider. */
|
||||
divider: true;
|
||||
};
|
||||
Reference in New Issue
Block a user