import React from "react"; // headless ui import { Listbox, Transition } from "@headlessui/react"; // icons import { getPriorityIcon } from "components/icons/priority-icon"; // constants import { PRIORITIES } from "constants/project"; type Props = { value: string | null; onChange: (value: string) => void; }; export const IssuePrioritySelect: React.FC = ({ value, onChange }) => ( {({ open }) => ( <> {getPriorityIcon(value)}
{value ?? "Priority"}
{PRIORITIES.map((priority) => ( `${selected ? "bg-indigo-50 font-medium" : ""} ${ active ? "bg-indigo-50" : "" } relative cursor-pointer select-none p-2 text-gray-900` } value={priority} > {getPriorityIcon(priority)} {priority ?? "None"} ))}
)}
);