import ProtectTxProvider from '@features/ProtectTransaction/ProtectTxProvider' ; export function withProtectTxProvider ( Component ) { return ( ownProps ) => { return ( < ProtectTxProvider > < Component { ... ownProps } / > < /ProtectTxProvider>); } ; }