"use client";
import { AddIcon } from "@/components/icons";
import MasterRoleTable from "@/components/table/master-role-table";
import { Button, Card } from "@heroui/react";
import Link from "next/link";

export default function MasterRolePage() {
  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/master-role/create" className="mx-3">
            <Button
              size="md"
              color="primary"
              className="bg-[#F07C00] text-white"
            >
              Peran Baru
              <AddIcon />
            </Button>
          </Link>
          <MasterRoleTable />
        </div>
      </div>
    </div>
  );
}
