import { Plugin } from '../PluginsRegistry' ; const mediaQueryPlugin = ( { addDefinition } , style ) => { for ( const prop in style ) { if ( style . hasOwnProperty ( prop ) && prop . indexOf ( '@media' ) === 0 ) { addDefinition ( null , prop , style [ prop ] ) ; delete style [ prop ] ; } } } ; export default mediaQueryPlugin ;