import { LucideIcon } from "lucide-react"; // plane ui import { useTranslation } from "@plane/i18n"; import { Tooltip } from "@plane/ui"; // plane utils import { cn } from "@plane/utils"; type Props = { onChange: (value: number) => void; value: number; accessSpecifiers: { key: number; i18n_label?: string; label?: string; icon: LucideIcon; }[]; isMobile?: boolean; }; // TODO: Remove label once i18n is done export const AccessField = (props: Props) => { const { onChange, value, accessSpecifiers, isMobile = false } = props; const { t } = useTranslation(); return (
{accessSpecifiers.map((access, index) => { const label = access.i18n_label ? t(access.i18n_label) : access.label; return ( ); })}
); };