feat: add roles to templates recipients

This commit is contained in:
Ephraim Atta-Duncan
2024-02-15 07:01:41 +00:00
parent f72b669f67
commit 769eaa0ed9
9 changed files with 135 additions and 66 deletions

View File

@ -0,0 +1,10 @@
import { BadgeCheck, Copy, Eye, PencilLine } from 'lucide-react';
import type { RecipientRole } from '.prisma/client';
export const ROLE_ICONS: Record<RecipientRole, JSX.Element> = {
SIGNER: <PencilLine className="h-4 w-4" />,
APPROVER: <BadgeCheck className="h-4 w-4" />,
CC: <Copy className="h-4 w-4" />,
VIEWER: <Eye className="h-4 w-4" />,
};