16 lines
405 B
TypeScript
16 lines
405 B
TypeScript
type SidebarSectionProps = {
|
|
label: string;
|
|
children: React.ReactNode;
|
|
};
|
|
|
|
export function SidebarSection({ label, children }: SidebarSectionProps) {
|
|
return (
|
|
<div>
|
|
<div className="px-3 py-1.5 text-[10px] font-medium uppercase tracking-widest font-mono text-muted-foreground/60">
|
|
{label}
|
|
</div>
|
|
<div className="flex flex-col gap-0.5">{children}</div>
|
|
</div>
|
|
);
|
|
}
|