import { Sections } from "../types";
import { VuiAppSideNavLink } from "./AppSideNavLink";
export const buildSections = (sections: Sections) => {
return (
{sections.map(({ name, pages }) => {
const renderedPages = pages.map(({ name, path }) => (
));
return (
{renderedPages}
);
})}
);
};
type Props = {
name: string;
children: React.ReactNode;
};
const VuiAppSideNavSection = ({ name, children }: Props) => {
return (
);
};