UNPKG

@wix/design-system

Version:

@wix/design-system

9 lines 414 B
import React from 'react'; import { DragDropContextProvider } from '../DragDropContextProvider'; export const withDNDContext = Component => { const WithDNDContext = props => (React.createElement(DragDropContextProvider, null, React.createElement(Component, { ...props }))); WithDNDContext.displayName = Component.displayName; return WithDNDContext; }; //# sourceMappingURL=withDNDContext.js.map