"use client";
import { AddIcon } from "@/components/icons";
import MagazineTable from "@/components/table/magazine/magazine-table";
import { Button } from "@nextui-org/react";
import Link from "next/link";

export default function MagazineTablePage() {
  return (
    <div className="overflow-x-hidden overflow-y-scroll">
      <div className="px-2 md:px-4 md:py-4 w-full">
        <div className="bg-white shadow-lg dark:bg-[#18181b] rounded-xl py-3">
          <Link href="/admin/magazine/create" className="mx-3">
            <Button size="md" className="bg-[#F07C00] text-white">
              Tambah Majalah
              <AddIcon />
            </Button>
          </Link>
          <MagazineTable />
        </div>
      </div>
    </div>
  );
}
