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

export default function BasicPage() {
  return (
    <div className="overflow-x-hidden overflow-y-scroll rounded-lg border-2">
      <div className="px-2 md:px-4 w-full">
        <div className="rounded-md my-5 px-5 py-2 bg-white dark:bg-[#18181b]">
          <Link href="/admin/article/create">
            <Button size="md" color="primary" className="w-min">
              <AddIcon />
              New Article
            </Button>
          </Link>
        </div>
        <div className="bg-white dark:bg-[#18181b] rounded-xl my-5 p-2">
          <ArticleTable />
        </div>
      </div>
    </div>
  );
}
