feat: init
This commit is contained in:
17
apps/web/helpers/views.helper.ts
Normal file
17
apps/web/helpers/views.helper.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { LucideIcon } from "lucide-react";
|
||||
import { Globe2, Lock } from "lucide-react";
|
||||
import { VIEW_ACCESS_SPECIFIERS as VIEW_ACCESS_SPECIFIERS_CONSTANTS } from "@plane/constants";
|
||||
import { EViewAccess } from "@plane/types";
|
||||
|
||||
const VIEW_ACCESS_ICONS = {
|
||||
[EViewAccess.PUBLIC]: Globe2,
|
||||
[EViewAccess.PRIVATE]: Lock,
|
||||
};
|
||||
export const VIEW_ACCESS_SPECIFIERS: {
|
||||
key: EViewAccess;
|
||||
i18n_label: string;
|
||||
icon: LucideIcon;
|
||||
}[] = VIEW_ACCESS_SPECIFIERS_CONSTANTS.map((option) => ({
|
||||
...option,
|
||||
icon: VIEW_ACCESS_ICONS[option.key as keyof typeof VIEW_ACCESS_ICONS],
|
||||
}));
|
||||
Reference in New Issue
Block a user