File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1- import type { ComponentProps , FC } from 'react' ;
1+ import type { ComponentProps , FC , PropsWithChildren } from 'react' ;
22
33import Select from '#ui/Common/Select' ;
44import 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 }
You can’t perform that action at this time.
0 commit comments