feat(side-bars-wrapper): add component content and logic
This commit is contained in:
parent
fbe6dcb21a
commit
90bbc345ad
|
@ -1,5 +1,32 @@
|
||||||
const SideBarsWrapper = () => {
|
import { ReactNode } from 'react'
|
||||||
return <div></div>
|
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 (
|
||||||
|
<XStack style={{ height: '100vh' }}>
|
||||||
|
{!isNotLeftSideBar && <LeftSidebar />}
|
||||||
|
{children}
|
||||||
|
{!isNotRightSideBar && (
|
||||||
|
<div className={styles['right-sidebar-wrapper']}>
|
||||||
|
<RightSidebar />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</XStack>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SideBarsWrapper
|
export default SideBarsWrapper
|
||||||
|
|
Loading…
Reference in New Issue