import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
import * as __WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__ from "../../collection-manager/index.mjs";
const useGetAriaLabelOfSchemaInitializer = ()=>{
    const fieldSchema = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
    const { name } = (0, __WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
    const getAriaLabel = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((postfix)=>{
        if (!fieldSchema) return '';
        const initializer = fieldSchema['x-initializer'] ? "-".concat(fieldSchema['x-initializer']) : '';
        const collectionName = name ? "-".concat(name) : '';
        postfix = postfix ? "-".concat(postfix) : '';
        return "schema-initializer-".concat(fieldSchema['x-component']).concat(initializer).concat(collectionName).concat(postfix);
    }, [
        fieldSchema,
        name
    ]);
    return {
        getAriaLabel
    };
};
export { useGetAriaLabelOfSchemaInitializer };
