import { jsx } from "react/jsx-runtime";
import "react";
import { observer } from "@tachybase/schema";
import { Tag } from "antd";
import { useCompile } from "../../../schema-component/index.mjs";
import { useCollectionManager_deprecated } from "../../hooks/index.mjs";
const CollectionTemplateTag = observer((props)=>{
    const { value } = props;
    const { getTemplate } = useCollectionManager_deprecated();
    const compile = useCompile();
    const schema = getTemplate(value);
    return /*#__PURE__*/ jsx(Tag, {
        children: compile((null == schema ? void 0 : schema.title) || '{{t("General collection")}}')
    });
}, {
    displayName: 'CollectionTemplateTag'
});
export { CollectionTemplateTag };
