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