import { ActionIcon, Group, Text, Tooltip } from "@mantine/core"; import { IconX } from "@tabler/icons-react"; import { CustomAvatar } from "@/components/ui/custom-avatar"; import { IVerifier } from "@/ee/page-verification/types/page-verification.types"; import { useTranslation } from "react-i18next"; type VerifierListProps = { verifiers: IVerifier[]; canManage?: boolean; onRemove?: (userId: string) => void; }; export function VerifierList({ verifiers, canManage, onRemove, }: VerifierListProps) { const { t } = useTranslation(); if (verifiers.length === 0) return null; return ( <> {verifiers.map((verifier, index) => (
{verifier.name} {verifier.email && ( {verifier.email} )}
{canManage && onRemove && ( onRemove(verifier.id)} > )}
))} ); }