Skip to content

Commit 30bdca9

Browse files
committed
allow passing children
1 parent e05582c commit 30bdca9

File tree

1 file changed

+5
-2
lines changed
  • packages/ui-components/Containers/Sidebar

1 file changed

+5
-2
lines changed

packages/ui-components/Containers/Sidebar/index.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ComponentProps, FC } from 'react';
1+
import type { ComponentProps, FC, PropsWithChildren } from 'react';
22

33
import Select from '#ui/Common/Select';
44
import SidebarGroup from '#ui/Containers/Sidebar/SidebarGroup';
@@ -17,13 +17,14 @@ type SidebarProps = {
1717
showProgressionIcons?: boolean;
1818
};
1919

20-
const SideBar: FC<SidebarProps> = ({
20+
const SideBar: FC<PropsWithChildren<SidebarProps>> = ({
2121
groups,
2222
pathname,
2323
title,
2424
onSelect,
2525
as,
2626
showProgressionIcons = false,
27+
children,
2728
}) => {
2829
const selectItems = groups.map(({ items, groupName }) => ({
2930
label: groupName,
@@ -36,6 +37,8 @@ const SideBar: FC<SidebarProps> = ({
3637

3738
return (
3839
<aside className={styles.wrapper}>
40+
{children}
41+
3942
{selectItems.length > 0 && (
4043
<Select
4144
label={title}

0 commit comments

Comments
 (0)