import { AnimatorClassSettings } from '../../constants' ; const CLASS_ALLOWED_SETTINGS = [ 'duration' , 'animate' , 'root' , 'merge' , 'combine' , 'manager' , 'onAnimateMount' , 'onAnimateEntering' , 'onAnimateEntered' , 'onAnimateExiting' , 'onAnimateExited' , 'onAnimateUnmount' ] ; function filterClassAnimatorSettings ( providedSettings ) { return CLASS_ALLOWED_SETTINGS . filter ( key => providedSettings [ key ] !== undefined ) . reduce ( ( obj , key ) => ( { ... obj , [ key ] : providedSettings [ key ] } ) , { } ) ; } export { filterClassAnimatorSettings } ;