41 | {header || left || right ? (
42 |
43 | {left}
44 |
45 | {header}
46 |
47 |
48 | ) : null}
49 | {children}
50 |
51 | );
52 | };
53 |
54 | type ItemWithSubNavigationProps = {
55 | text: string;
56 | children: ReactNode;
57 | initialOpen?: boolean;
58 | };
59 |
60 | export const CollapsibleSubgroupLeft = ({
61 | text,
62 | children,
63 | initialOpen = false,
64 | }: ItemWithSubNavigationProps) => {
65 | const [open, setOpen] = React.useState(initialOpen);
66 |
67 | return (
68 |