base
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Copyright (c) 2023-present Plane Software, Inc. and contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
* See the LICENSE file for details.
|
||||
*/
|
||||
|
||||
import type { LucideIcon } from "lucide-react";
|
||||
import { VIEW_ACCESS_SPECIFIERS as VIEW_ACCESS_SPECIFIERS_CONSTANTS } from "@plane/constants";
|
||||
import { GlobeIcon, LockIcon } from "@plane/propel/icons";
|
||||
|
||||
import type { ISvgIcons } from "@plane/propel/icons";
|
||||
import { EViewAccess } from "@plane/types";
|
||||
|
||||
const VIEW_ACCESS_ICONS = {
|
||||
[EViewAccess.PUBLIC]: GlobeIcon,
|
||||
[EViewAccess.PRIVATE]: LockIcon,
|
||||
};
|
||||
|
||||
export const VIEW_ACCESS_SPECIFIERS: {
|
||||
key: EViewAccess;
|
||||
i18n_label: string;
|
||||
icon: LucideIcon | React.FC<ISvgIcons>;
|
||||
}[] = 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