import Link from "../Link/Link"

const Sidebar = ({
  active,
  close
}) => {
  return (
    <>
      { active && <div className="overlay z-50" onClick={close}></div> }
      <div className={`fixed z-[55] top-0 h-full w-[80%] transition-all ease-linear duration-50 bg-white ${active ? 'left-0' : '-left-[80%]'}`}>
        <div className="divide-y divide-gray_r-6">
          <Link href="/" className="px-4 py-3 block !text-gray_r-12 font-normal">
            Semua Brand
          </Link>
          <Link href="/" className="px-4 py-3 block !text-gray_r-12 font-normal">
            Tentang Indoteknik
          </Link>
          <Link href="/" className="px-4 py-3 block !text-gray_r-12 font-normal">
            Pusat Bantuan
          </Link>
          <Link href="/" className="px-4 py-3 block !text-gray_r-12 font-normal">
            Kategori
          </Link>
        </div>
      </div>
    </>
  )
}

export default Sidebar