import { h, type FunctionComponent } from 'preact' import Button from './button.tsx' import { Table, Td, Th } from './table.tsx' const RolesTable: FunctionComponent<{ roles?: ANY[]; onDelete?: ANY; onEdit?: ANY; onSortBy?: ANY }> = ({ roles, onDelete, onEdit, onSortBy, }) => ( {roles?.length ? ( roles.map((role) => ( )) ) : ( )}
ID Name Created At Created By
{role.id} {role.name} {role.createdAt} {role.createdBy?.email} {' '}
No roles found
) export default RolesTable