import type { ReactNode } from "react";
import { Icon, type IconName } from "./Icon";
export type SidebarItem = {
id?: string;
label: ReactNode;
href: string;
icon?: IconName;
current?: boolean;
};
export type SidebarSection = {
category?: ReactNode;
items: SidebarItem[];
};
export function AppShell({ children }: { children: ReactNode }) {
return
{children}
;
}
export type SidebarProps = {
brand?: ReactNode;
sections: SidebarSection[];
footer?: ReactNode;
};
export function Sidebar({ brand, sections, footer }: SidebarProps) {
return (
);
}
export function AppMain({ children }: { children: ReactNode }) {
return {children}
;
}
export type TopbarProps = {
title?: ReactNode;
actions?: ReactNode;
};
export function Topbar({ title, actions }: TopbarProps) {
return (
{title}
{actions && {actions}
}
);
}