"use client";
import { AddIcon } from "@/components/icons";
import ArticleTable from "@/components/table/article-table";
import generatedArticleIds from "@/store/generated-article-store";
import { Button, Card } from "@nextui-org/react";
import Link from "next/link";
import { useRouter } from "next/navigation";

export default function BasicPage() {
  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 p-3">
          <Link href="/admin/article/create">
            <Button
              size="md"
              className="bg-[#F07C00] text-white w-full lg:w-fit"
            >
              Tambah Artikel
              <AddIcon />
            </Button>
          </Link>
          <ArticleTable />
        </div>
      </div>
    </div>
  );
}
