import React from "react"; // components import { Tooltip } from "components/ui"; // types import { IIssue } from "types"; 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`}
) ) : ( "" )} );