import { useQuery } from "@tanstack/react-query"; import { warehouseLocationListOptions, type WarehouseLocation, } from "../../lib/queries/warehouse"; interface LocationSelectProps { value: number | null; onChange: (locationId: number | null) => void; } export default function LocationSelect({ value, onChange, }: LocationSelectProps) { const { data: locations } = useQuery(warehouseLocationListOptions()); return ( ); }