2020-11-25 15:17:59 +01:00
|
|
|
import React from 'react';
|
2021-02-16 13:54:16 +01:00
|
|
|
import { QueryClientProvider } from 'react-query';
|
2020-11-25 15:17:59 +01:00
|
|
|
|
2022-04-15 13:05:46 +02:00
|
|
|
import ComboSearch, { ComboSearchProps } from './ComboSearch';
|
2021-02-16 13:54:16 +01:00
|
|
|
import { queryClient } from './shared/queryClient';
|
2020-11-25 15:17:59 +01:00
|
|
|
|
2022-04-15 13:05:46 +02:00
|
|
|
export default function ComboPaysSearch(
|
|
|
|
props: ComboSearchProps<{ code: string; value: string; label: string }>
|
|
|
|
) {
|
2020-11-25 15:17:59 +01:00
|
|
|
return (
|
2021-02-16 13:54:16 +01:00
|
|
|
<QueryClientProvider client={queryClient}>
|
2020-11-25 15:17:59 +01:00
|
|
|
<ComboSearch
|
2022-04-15 13:05:46 +02:00
|
|
|
{...props}
|
2020-11-25 15:17:59 +01:00
|
|
|
scope="pays"
|
|
|
|
minimumInputLength={0}
|
2021-08-31 12:49:35 +02:00
|
|
|
transformResult={({ code, value, label }) => [code, value, label]}
|
2020-11-25 15:17:59 +01:00
|
|
|
/>
|
2021-02-16 13:54:16 +01:00
|
|
|
</QueryClientProvider>
|
2020-11-25 15:17:59 +01:00
|
|
|
);
|
|
|
|
}
|