From 432b3f781ebf9f5d3e5dc03efae1a3bd9040ac3d Mon Sep 17 00:00:00 2001 From: Douglas Winter Date: Wed, 2 Sep 2026 15:01:00 +0100 Subject: [PATCH] Export SidebarNav --- src/components/navigation/SidebarNav.tsx | 7 +++++-- src/index.ts | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) 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";