import { ClassNameStates } from './make-class-names' ; import { hasAnimation } from './has-animation' ; import { Mounter } from './mounter' ; import { animatedMount } from './mount-animated' ; import { staticMount } from './mount-static' ; export const mount = async ( incoming , mounter , name , duration ) : Promise < void > => { const states = new ClassNameStates ( name ) ; const isAnimated = hasAnimation ( states . noAnimation , name , duration ) ; if ( isAnimated ) { return animatedMount ( states , incoming , mounter , name , duration ) ; } return staticMount ( states , incoming , mounter , name ) ; } ;