From 90bbc345ad91214d58ef5b24d021c80aea803bb8 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Wed, 27 Mar 2024 09:28:35 +0200 Subject: [PATCH] feat(side-bars-wrapper): add component content and logic --- .../PageWrappers/SideBarsWrapper.tsx | 31 +++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) 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