import { rightSideBarExpandStateAtom } from '@helpers/atoms/SideBarExpand.atom' import { Variants, motion } from 'framer-motion' import { useAtomValue } from 'jotai' import { Fragment } from 'react' import BotSetting from '../BotSetting' import BotInfo from '../BotInfo' const variants: Variants = { show: { x: 0, width: 320, opacity: 1, transition: { duration: 0.3 }, }, hide: { x: '100%', width: 0, opacity: 0, transition: { duration: 0.3 }, }, } const RightContainer = () => { const isVisible = useAtomValue(rightSideBarExpandStateAtom) return ( {isVisible && ( {/* Divider */}
)} ) } export default RightContainer