import React from "react"; // ui import { CustomSelect } from "components/ui"; // icons import { ChartBarIcon } from "@heroicons/react/24/outline"; import { getPriorityIcon } from "components/icons/priority-icon"; // types import { UserAuth } from "types"; // constants import { PRIORITIES } from "constants/project"; type Props = { value: string | null; onChange: (val: string) => void; userAuth: UserAuth; }; export const SidebarPrioritySelect: React.FC = ({ value, onChange, userAuth }) => { const isNotAllowed = userAuth.isGuest || userAuth.isViewer; return (

Priority

{getPriorityIcon(value ?? "None", "text-sm")} {value ?? "None"}
} value={value} onChange={onChange} width="w-full" position="right" disabled={isNotAllowed} > {PRIORITIES.map((option) => ( <> {getPriorityIcon(option, "text-sm")} {option ?? "None"} ))}
); };