import React from 'react'; import GGEditorContext from '@common/context/GGEditorContext'; export default function (WrappedComponent) { class InjectGGEditorContext extends React.Component { render() { const { forwardRef, ...rest } = this.props; return ( {context => } ); } } return React.forwardRef((props, ref) => ); }