import React from "react"; // ui import { CustomMenu } from "components/ui"; // types import { IIssueLabels } from "types"; //icons import { RectangleGroupIcon, PencilIcon, TrashIcon } from "@heroicons/react/24/outline"; 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 label handleLabelDelete(label.id)}> Delete label
);