import {BarcodeTemplateSizeSchema} from "../../../../client";
import ObjectSelect, {ObjectSelectProps} from "../../../../components/ObjectSelect/ObjectSelect.tsx";
import useBarcodeTemplateSizesList from "../../hooks/useBarcodeTemplateSizesList.tsx";

type Props = Omit<ObjectSelectProps<BarcodeTemplateSizeSchema>, 'data'>
const BarcodeTemplateSizeSelect = (props: Props) => {
    const {barcodeTemplateSizes} = useBarcodeTemplateSizesList();

    return (
        <ObjectSelect
            data={barcodeTemplateSizes}
            {...props}
        />
    )
}
export default BarcodeTemplateSizeSelect;