Files
probo/packages/helpers/src/documents.ts
Jonathan 7d2d26aab5 Add document type field
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
2025-06-13 13:23:43 -07:00

15 lines
369 B
TypeScript

type Translator = (s: string) => string;
export const documentTypes = ["OTHER", "ISMS", "POLICY"] as const;
export function getDocumentTypeLabel(__: Translator, type: string) {
switch (type) {
case "OTHER":
return __("Other");
case "ISMS":
return __("ISMS");
case "POLICY":
return __("Policy");
}
}