import * as React from "react"; import { cx } from "@emotion/css"; import { sidebarSectionHeader, sidebarSectionList } from "../style"; import { tintText, textSize, textWeight, listReset, margin, flex } from "../../shared/styles/styleUtils"; import { greyLightDarken3 } from "../../design-tokens/build/js/designTokens"; import { useTheme } from "@emotion/react"; import { AppChromeTheme } from "../types"; export interface SidebarSectionProps { children: React.ReactNode | React.ReactNode[]; label?: React.ReactElement | string; } const SidebarSection = ({ label, children }: SidebarSectionProps) => { const theme: AppChromeTheme = useTheme(); return (
{label && (

{label}

)}
); }; export default SidebarSection;