import { element } from 'crayon-kit' ; import { getRouteTargets } from "./get-route-targets" ; import { Mounter } from './mounter' ; import { ClassNameStates } from './make-class-names' ; export const staticMount = async ( states , incoming , mounter , name ) : Promise < void > => { await mounter . push ( incoming ) ; const { leaving , entering } = getRouteTargets ( mounter . selector ) ; element . addClassNames ( entering , [ name ] ) ; element . waitForElements ( entering ) ; if ( leaving === undefined ) { element . addClassNames ( entering , [ states . enterDone ] ) ; return ; } await mounter . shift ( ) ; } ;