import { Plugin } from '../PluginsRegistry' ; const nestedSelectorPlugin = ( { addDefinition } , style ) => { for ( const prop in style ) { if ( style . hasOwnProperty ( prop ) && prop . indexOf ( '&' ) !== - 1 ) { addDefinition ( prop , null , style [ prop ] ) ; delete style [ prop ] ; } } } ; export default nestedSelectorPlugin ;