import ObjectMultiSelect, {
    ObjectMultiSelectProps
} from "../../../../components/ObjectMultiSelect/ObjectMultiSelect.tsx";
import {BarcodeTemplateAttributeSchema} from "../../../../client";
import {FC} from "react";
import useBarcodeTemplateAttributesList from "../../hooks/useBarcodeTemplateAttributesList.tsx";

type Props = Omit<ObjectMultiSelectProps<BarcodeTemplateAttributeSchema>, 'data'>

const BarcodeTemplateAttributeMultiselect: FC<Props> = (props: Props) => {
    const {barcodeTemplateAttributes} = useBarcodeTemplateAttributesList();
    return (
        <ObjectMultiSelect
            data={barcodeTemplateAttributes}
            {...props}
        />
    )
}

export default BarcodeTemplateAttributeMultiselect;