/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ // types import type { TLogoProps } from "@plane/types"; // helpers import { cn } from "@plane/utils"; type Props = { className?: string; logo: TLogoProps; }; export function ProjectLogo(props: Props) { const { className, logo } = props; if (logo.in_use === "icon" && logo.icon) return ( {logo.icon.name} ); if (logo.in_use === "emoji" && logo.emoji) return ( {logo.emoji.value?.split("-").map((emoji) => String.fromCodePoint(parseInt(emoji, 10)))} ); return ; }