π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
/**
* Copyright (c) 2023-present Plane Software, Inc. and contributors
* SPDX-License-Identifier: AGPL-3.0-only
* See the LICENSE file for details.
*/
import type { TNetworkChoiceIconKey } from "@plane/constants";
// plane imports
import { GlobeIcon, LockIcon } from "@plane/propel/icons";
import { cn } from "@plane/utils";
type Props = {
iconKey: TNetworkChoiceIconKey;
className?: string;
};
export function ProjectNetworkIcon(props: Props) {
const { iconKey, className } = props;
// Get the icon key
const getProjectNetworkIcon = () => {
switch (iconKey) {
case "Lock":
return LockIcon;
case "Globe2":
return GlobeIcon;
default:
return null;
}
};
// Get the icon
const Icon = getProjectNetworkIcon();
if (!Icon) return null;
return <Icon className={cn("h-3 w-3", className)} />;
}