'use client' import Drawer from '@/app/components/base/drawer' import type { IDrawerProps } from '@/app/components/base/drawer' type IFloatRightContainerProps = { isMobile: boolean children?: React.ReactNode } & IDrawerProps const FloatRightContainer = ({ isMobile, children, isOpen, ...drawerProps }: IFloatRightContainerProps) => { return ( <> {isMobile && ( {children} )} {(!isMobile && isOpen) && ( <>{children} )} ) } export default FloatRightContainer