Signed-off-by: Bryan Frimin <bryan@getprobo.com> Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
15 lines
369 B
TypeScript
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");
|
|
}
|
|
}
|