import { ActionIcon, Badge, Group, Table, Text, Tooltip } from "@mantine/core"; import { IconChevronRight, IconLock } from "@tabler/icons-react"; import { Link } from "react-router-dom"; import { useTranslation } from "react-i18next"; import { IRole } from "@/features/acadenice/rbac/types/rbac.types"; export interface RoleRowProps { role: IRole; } export function RoleRow({ role }: RoleRowProps) { const { t } = useTranslation(); const target = `/settings/roles/${role.id}`; return ( {role.name} {role.isSystemRole ? ( } data-testid={`role-badge-system-${role.id}`} > {t("system")} ) : ( {t("custom")} )} {role.description ?? "—"} {typeof role.memberCount === "number" ? role.memberCount : "—"} ); } export default RoleRow;