import ObjectMultiSelect, {ObjectMultiSelectProps} from "../../ObjectMultiSelect/ObjectMultiSelect.tsx";
import {ServiceSchema} from "../../../client";
import {FC} from "react";
import useServicesList from "../../../pages/ServicesPage/hooks/useServicesList.tsx";

type Props = Omit<ObjectMultiSelectProps<ServiceSchema>, 'data'>
const ServicesMultiselect: FC<Props> = (props: Props) => {
    const {services} = useServicesList();
    return (
        <ObjectMultiSelect
            data={services}
            {...props}
        />
    )
}
export default ServicesMultiselect;