import React from "react"; type IssueLabelsListProps = { labels?: (string | undefined)[]; length?: number; showLength?: boolean; }; export const IssueLabelsList: React.FC = ({ labels, length = 5, showLength = true, }) => ( <> {labels && ( <> {labels.map((color, index) => (
))} {labels.length > length ? +{labels.length - length} : null} )} );