import React from "react"; // ui import { CustomSelect } from "components/ui"; // 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 }) => ( {getPriorityIcon(value, `text-xs ${value ? "" : "text-gray-500"}`)} {value ?? "Priority"} } onChange={onChange} noChevron > {PRIORITIES.map((priority) => (
{getPriorityIcon(priority)} {priority ?? "None"}
))}
);