react-code-dataset / wp-calypso /client /data /media /with-add-media.js
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
Raw History Blame Contribute Delete
314 Bytes
import { createHigherOrderComponent } from '@wordpress/compose';
import { useAddMedia } from './use-add-media';
export const withAddMedia = createHigherOrderComponent(
( Wrapped ) => ( props ) => {
const addMedia = useAddMedia();
return <Wrapped { ...props } addMedia={ addMedia } />;
},
'WithAddMedia'
);