"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="h-[96vh] overflow-x-hidden overflow-y-scroll gap-0 grid rounded-lg border-2 ml-4">
            <div className="px-4">
                <Card className="rounded-md my-5 pl-5 py-2">
                    <Link href="/admin/article/create">
                        <Button size="md" color="primary" className="w-min">
                            <AddIcon />New Article
                        </Button>
                    </Link>
                </Card>
                <Card className="rounded-md my-5">
                    <ArticleTable />
                </Card>
            </div>
        </div>
    );
}
