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: (val: string) => void; disabled?: boolean; }; export const SidebarPrioritySelect: React.FC = ({ value, onChange, disabled = false }) => ( {getPriorityIcon(value ?? "None", "!text-sm")} {value ?? "None"} } value={value} onChange={onChange} optionsClassName="w-min" disabled={disabled} > {PRIORITIES.map((option) => ( <> {getPriorityIcon(option, "text-sm")} {option ?? "None"} ))} );