import { App , AppNavLinkStatus , AppStatus , PublicAppInfo } from '../types' ; export function getAppInfo ( app ) { const navLinkStatus = app . navLinkStatus === AppNavLinkStatus . default ? app . status === AppStatus . inaccessible ? AppNavLinkStatus . hidden : AppNavLinkStatus . visible : app . navLinkStatus ! ; const { updater$ , mount , ... infos } = app ; return { ... infos , status : app . status ! , navLinkStatus , appRoute : app . appRoute ! , } ; }