import { useToggle } from '@/layout/context' ; const style = { open : `bg-black fixed h-screen left-0 opacity-40 top-0 w-screen z-30 lg:hidden` , } ; export default function Overlay ( ) { const { open } = useToggle ( ) ; return < div className = { open ? style . open : '' } />; }