import { EmptyPlaceholder } from "@/components/dashboard/empty-placeholder"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; // import { getTenantId } from "@/lib/auth"; // import { db } from "@/lib/db"; import { ChevronRight, Scan } from "lucide-react"; import Link from "next/link"; import { redirect } from "next/navigation"; import { CreateNewRole } from "./create-new-role"; export const revalidate = 0; export default async function RolesPage() { // const tenantId = getTenantId(); // const workspace = await db.query.workspaces.findFirst({ // where: (table, { and, eq, isNull }) => // and(eq(table.tenantId, tenantId), isNull(table.deletedAt)), // with: { // permissions: true, // roles: { // with: { // keys: { // columns: { // keyId: true, // }, // }, // permissions: { // with: { // permission: true, // }, // }, // }, // }, // }, // }); // if (!workspace) { // return redirect("/new"); // } return (
{r.name}
{r.description}