function BgGray({ isActive, setIsActive }) {
    return (
        <div
            onClick={() => setIsActive(false)}
            className={`
                ${isActive ? 'bg-[#232323] opacity-40 flex' : 'bg-transparent opacity-40 hidden'}
                absolute z-[5] cursor-pointer transition-all duration-500 left-0 top-[-12px] sm:top-[-21px] md:top-[-30px] lg:top-[-40px] w-screen h-screen
                `}
        ></div>
    )
}

export default BgGray