import { AddIcon } from "@/components/icons";
import StaticPageTable from "@/components/table/static-page-table";
import { Button, Card } from "@nextui-org/react";
import Link from "next/link";

export default function StaticPageGeneratorList() {
  return (
    <div className="overflow-x-hidden overflow-y-scroll rounded-lg">
      <div className="px-2 md:px-4 w-full">
        <div className="rounded-md mt-4 px-5 py-2 bg-white dark:bg-[#18181b] flex flex-row gap-3 shadow-lg">
          <Link href="/admin/static-page/create">
            <Button
              size="md"
              color="primary"
              className="bg-[#F07C00] text-white"
            >
              <AddIcon />
              Create Page
            </Button>
          </Link>
        </div>
        <div className="bg-white shadow-lg dark:bg-[#18181b] rounded-xl p-2 mt-4">
          <StaticPageTable />
        </div>
      </div>
    </div>
  );
}
