diff --git a/src/components/navigation/SidebarNav.tsx b/src/components/navigation/SidebarNav.tsx index 2e4ad2e8..7d5d8fb9 100644 --- a/src/components/navigation/SidebarNav.tsx +++ b/src/components/navigation/SidebarNav.tsx @@ -14,7 +14,7 @@ import { useTheme, Theme } from "@mui/material/styles"; import { Fragment, type ElementType, type ReactNode } from "react"; import useMediaQuery from "@mui/material/useMediaQuery"; -export type Navigation = NavItemGroup[]; +type Navigation = NavItemGroup[]; type NavItemGroup = { name?: string; @@ -65,7 +65,7 @@ type NavProps = { footerSlot?: ReactNode; }; -export function SidebarNav(props: NavProps) { +function SidebarNav(props: NavProps) { const theme = useTheme(); const desktopLayout = useMediaQuery(theme.breakpoints.up("sm")); @@ -249,3 +249,6 @@ function NavItem(props: NavItemProps) { ); } + +export type { NavProps, Navigation, NavItemGroup, NavItemDefinition }; +export { SidebarNav }; diff --git a/src/index.ts b/src/index.ts index cf7bcb4a..70ff7b3d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,6 +3,7 @@ export * from "./components/navigation/Breadcrumbs"; export * from "./components/navigation/Footer"; export * from "./components/navigation/Navbar"; export * from "./components/navigation/NavMenu"; +export * from "./components/navigation/SidebarNav"; // components/controls export * from "./components/controls/AppTitlebar";