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