@wordpress/block-editor
Version:
13 lines (11 loc) • 326 B
JavaScript
/**
* Internal dependencies
*/
import { __experimentalUseGradient } from './use-gradient';
export const withGradient = ( WrappedComponent ) =>
function WithGradient( props ) {
const { gradientValue } = __experimentalUseGradient();
return (
<WrappedComponent { ...props } gradientValue={ gradientValue } />
);
};