You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
413 B
19 lines
413 B
import { Heading } from "../Typography/Heading";
|
|
|
|
export interface SidebarSectionProps {
|
|
label: string;
|
|
subheader?: string;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export const SidebarSection = ({
|
|
label: title,
|
|
children,
|
|
}: SidebarSectionProps) => (
|
|
<div className="px-4 py-2">
|
|
<Heading as="h4" className="mb-3 ml-2">
|
|
{title}
|
|
</Heading>
|
|
<div className="space-y-1">{children}</div>
|
|
</div>
|
|
);
|
|
|