UNPKG

@gechiui/block-editor

Version:
17 lines (15 loc) 473 B
import _extends from "@babel/runtime/helpers/esm/extends"; import { createElement } from "@gechiui/element"; /** * Internal dependencies */ import { __experimentalUseGradient } from './use-gradient'; export const withGradient = WrappedComponent => props => { const { gradientValue } = __experimentalUseGradient(); return createElement(WrappedComponent, _extends({}, props, { gradientValue: gradientValue })); }; //# sourceMappingURL=with-gradient.js.map