import React from "react"; // components import { Tooltip } from "components/ui"; // types import { IIssue } from "types"; type Props = { issue: IIssue; maxRender?: number; }; export const ViewIssueLabel: React.FC = ({ issue, maxRender = 1 }) => ( <> {issue.label_details.length > 0 ? ( issue.label_details.length <= maxRender ? ( <> {issue.label_details.map((label, index) => (
{label.name}
))} ) : (
l.name).join(", ")} >
{`${issue.label_details.length} Labels`}
) ) : ( "" )} );