import { FC } from "react"; import { TLogoProps } from "@plane/types"; import { ISvgIcons, Logo } from "@plane/ui"; import { getFileURL } from "@plane/utils"; import { truncateText } from "@/helpers/string.helper"; type TSwitcherLabelProps = { logo_props?: TLogoProps; logo_url?: string; name?: string; LabelIcon: FC; }; export const SwitcherLabel: FC = (props) => { const { logo_props, name, LabelIcon, logo_url } = props; return (
{logo_props?.in_use ? ( ) : logo_url ? ( logo ) : ( )} {truncateText(name ?? "", 40)}
); };