import React, { useMemo } from 'react'; import AppLayout from '../../../layouts/app-layout'; import { Container, Title, Card, Group, Button, Badge, ActionIcon, } from '@mantine/core'; import { IconEdit } from '@tabler/icons-react'; import { MantineReactTable } from 'mantine-react-table'; import type { MRT_Row } from 'mantine-react-table'; import { Link } from '@inertiajs/react'; import { Role } from "@/types"; interface Props { roles: Role[]; } export default function Page({ roles, }: Props) { const rolesData = roles ?? []; const columns = useMemo( () => [ { accessorKey: 'name', header: 'Name', }, ], [] ); const renderRowActions = ({ row }: { row: MRT_Row }) => ( ); return ( Roles ); }