import { useQuery } from "@tanstack/react-query"; import { warehouseSupplierListOptions, type WarehouseSupplier, } from "../../lib/queries/warehouse"; interface SupplierSelectProps { value: number | null; onChange: (supplierId: number | null) => void; } export default function SupplierSelect({ value, onChange, }: SupplierSelectProps) { const { data } = useQuery(warehouseSupplierListOptions({ perPage: 100 })); const suppliers = data?.data ?? []; return ( ); }