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
            searchable
            data={clients}
            {...props}
        />
    )
}
export default ClientSelectNew;