import type { FC } from "react"; import type { ISvgIcons } from "@plane/propel/icons"; import type { TLogoProps } from "@plane/types"; import { getFileURL, truncateText } from "@plane/utils"; import { Logo } from "@/components/common/logo"; type TSwitcherIconProps = { logo_props?: TLogoProps; logo_url?: string; LabelIcon: FC; size?: number; type?: "lucide" | "material"; }; export const SwitcherIcon: FC = ({ logo_props, logo_url, LabelIcon, size = 12, type = "lucide", }) => { if (logo_props?.in_use) { return ; } if (logo_url) { return ( logo ); } return ; }; type TSwitcherLabelProps = { logo_props?: TLogoProps; logo_url?: string; name?: string; LabelIcon: FC; type?: "lucide" | "material"; }; export const SwitcherLabel: FC = (props) => { const { logo_props, name, LabelIcon, logo_url, type = "lucide" } = props; return (
{truncateText(name ?? "", 40)}
); };