diff --git a/src/components/PageWrappers/SideBarsWrapper.tsx b/src/components/PageWrappers/SideBarsWrapper.tsx index 8b3defa7..e4e730b5 100644 --- a/src/components/PageWrappers/SideBarsWrapper.tsx +++ b/src/components/PageWrappers/SideBarsWrapper.tsx @@ -1,5 +1,32 @@ -const SideBarsWrapper = () => { - return
+import { ReactNode } from 'react' +import { XStack } from 'tamagui' + +import LeftSidebar from '../General/LeftSidebar/LeftSidebar' +import RightSidebar from '../General/RightSideBar/RightSidebar' +import styles from './side-bars-wrapper.module.css' + +type SideBardsWrapperProps = { + children: ReactNode + isNotLeftSideBar?: boolean + isNotRightSideBar?: boolean +} + +const SideBarsWrapper = ({ + children, + isNotLeftSideBar, + isNotRightSideBar, +}: SideBardsWrapperProps) => { + return ( + + {!isNotLeftSideBar && } + {children} + {!isNotRightSideBar && ( +
+ +
+ )} +
+ ) } export default SideBarsWrapper