import { AnimatorRef , AnimatorClassSettings } from '@arwes/animator' ; import { Bleeps } from '@arwes/bleeps' ; import { TextAnimationRefs , startTextAnimation , stopTextAnimation } from '../utils/textAnimations' ; const onAnimateEntering = ( animator , refs , bleeps ) : void => { bleeps . type ?. play ( ) ; startTextAnimation ( animator , refs ) ; } ; const onAnimateEntered = ( animator , refs , bleeps ) : void => { bleeps . type ?. stop ( ) ; } ; const onAnimateExiting = ( animator , refs , bleeps ) : void => { bleeps . type ?. play ( ) ; startTextAnimation ( animator , refs ) ; } ; const onAnimateExited = ( animator , refs , bleeps ) : void => { bleeps . type ?. stop ( ) ; } ; const onAnimateUnmount = ( animator , refs , bleeps ) : void => { stopTextAnimation ( animator , refs ) ; bleeps . type ?. stop ( ) ; } ; const animator = { onAnimateEntering , onAnimateEntered , onAnimateExiting , onAnimateExited , onAnimateUnmount } ; export { animator } ;