fix(sidebars-wrapper): return file with new name

GitHub doesn't showed changes when I renamed the file, so I had to delete it, push it and return it
This commit is contained in:
RadoslavDimchev 2024-03-28 21:31:00 +02:00 committed by Radoslav Dimchev
parent 6ec615b2f7
commit 1caab5d4ae
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
import { ReactNode } from 'react'
import { XStack } from 'tamagui'
import LeftSidebar from '../General/LeftSidebar/LeftSidebar'
import RightSidebar from '../General/RightSideBar/RightSidebar'
import styles from './sidebars-wrapper.module.css'
type SidebarsWrapperProps = {
children: ReactNode
isNotLeftSideBar?: boolean
isNotRightSideBar?: boolean
}
const SidebarsWrapper = ({
children,
isNotLeftSideBar,
isNotRightSideBar,
}: SidebarsWrapperProps) => {
return (
<XStack style={{ height: '100vh' }}>
{!isNotLeftSideBar && <LeftSidebar />}
{children}
{!isNotRightSideBar && (
<div className={styles['right-sidebar-wrapper']}>
<RightSidebar />
</div>
)}
</XStack>
)
}
export default SidebarsWrapper