/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ import React from "react"; // components import { Tooltip } from "@makeplane/propel/components/tooltip"; import { usePlatformOS } from "@/hooks/use-platform-os"; type Props = { labelDetails: any[]; maxRender?: number; }; export function ViewIssueLabel({ labelDetails, maxRender = 1 }: Props) { const { isMobile } = usePlatformOS(); return ( <> {labelDetails?.length > 0 ? ( labelDetails.length <= maxRender ? ( <> {labelDetails.map((label) => (