import type { OrganisationResponse } from "@issue/shared"; import { useState } from "react"; import { CreateOrganisation } from "@/components/create-organisation"; import { Button } from "@/components/ui/button"; import { Select, SelectContent, SelectItem, SelectSeparator, SelectTrigger, SelectValue, } from "@/components/ui/select"; export function OrganisationSelect({ organisations, selectedOrganisation, onSelectedOrganisationChange, onCreateOrganisation, placeholder = "Select Organisation", }: { organisations: OrganisationResponse[]; selectedOrganisation: OrganisationResponse | null; onSelectedOrganisationChange: (organisation: OrganisationResponse | null) => void; onCreateOrganisation?: (organisationId: number) => void | Promise; placeholder?: string; }) { const [open, setOpen] = useState(false); return ( ); }