/** * 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"; // plane ui import { useTranslation } from "@plane/i18n"; import type { ISvgIcons } from "@plane/propel/icons"; import { Tooltip } from "@makeplane/propel/components/tooltip"; // plane utils import { cn } from "@plane/utils"; type Props = { onChange: (value: number) => void; value: number; accessSpecifiers: { key: number; i18n_label: string; icon: LucideIcon | React.FC; }[]; isMobile?: boolean; }; export function AccessField(props: Props) { const { onChange, value, accessSpecifiers, isMobile = false } = props; const { t } = useTranslation(); return (
{accessSpecifiers.map((access, index) => { const label = t(access.i18n_label); return ( ); })}
); }