Files
Fulfillment-Frontend/src/components/Selects/ClientSelectNew/ClientSelectNew.tsx
2024-08-10 06:53:45 +03:00

17 lines
523 B
TypeScript

import ObjectSelect, {ObjectSelectProps} from "../../ObjectSelect/ObjectSelect.tsx";
import {ClientSchema} from "../../../client";
import {FC} from "react";
import useClientsList from "../../../pages/ClientsPage/hooks/useClientsList.tsx";
type Props = Omit<ObjectSelectProps<ClientSchema>, 'data'>
const ClientSelectNew: FC<Props> = (props) => {
const {clients} = useClientsList();
return (
<ObjectSelect
data={clients}
{...props}
/>
)
}
export default ClientSelectNew;