import React from "react"; // ui import { CustomMenu } from "components/ui"; // types import { IIssueLabels } from "types"; type Props = { label: IIssueLabels; addLabelToGroup: (parentLabel: IIssueLabels) => void; editLabel: (label: IIssueLabels) => void; handleLabelDelete: (labelId: string) => void; }; export const SingleLabel: React.FC = ({ label, addLabelToGroup, editLabel, handleLabelDelete, }) => (
{label.name}
addLabelToGroup(label)}> Convert to group editLabel(label)}>Edit handleLabelDelete(label.id)}> Delete
);