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