"use client"; import React from "react"; // components import { Tooltip } from "@plane/ui"; import { usePlatformOS } from "@/hooks/use-platform-os"; type Props = { labelDetails: any[]; maxRender?: number; }; export const ViewIssueLabel: React.FC = ({ labelDetails, maxRender = 1 }) => { const { isMobile } = usePlatformOS(); return ( <> {labelDetails?.length > 0 ? ( labelDetails.length <= maxRender ? ( <> {labelDetails.map((label) => (
{label.name}
))} ) : (
l.name).join(", ")} isMobile={isMobile} >
{`${labelDetails.length} Labels`}
) ) : ( "" )} ); };