// hooks import useProjects from "hooks/use-projects"; // ui import { CustomSelect } from "components/ui"; // icons import { ClipboardDocumentListIcon } from "@heroicons/react/24/outline"; export interface IssueProjectSelectProps { value: string; onChange: (value: string) => void; } export const IssueProjectSelect: React.FC = ({ value, onChange }) => { const { projects } = useProjects(); return ( {projects?.find((i) => i.id === value)?.identifier ?? "Project"} } onChange={(val: string) => onChange(val)} noChevron > {projects ? ( projects.length > 0 ? ( projects.map((project) => ( <>{project.name} )) ) : (

No projects found!

) ) : (
Loading...
)}
); };