UNPKG

@wordpress/blocks

Version:
28 lines (26 loc) 784 B
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.withBlockContentContext = withBlockContentContext; var _deprecated = _interopRequireDefault(require("@wordpress/deprecated")); /** * WordPress dependencies */ /** * A Higher Order Component used to inject BlockContent using context to the * wrapped component. * * @deprecated * * @param {Component} OriginalComponent The component to enhance. * @return {Component} The same component. */ function withBlockContentContext(OriginalComponent) { (0, _deprecated.default)('wp.blocks.withBlockContentContext', { since: '6.1' }); return OriginalComponent; } //# sourceMappingURL=deprecated.js.map