function renderPage(selectToken: any, pageUrl: string, fromTokenPages: any) {
    const subPageKey = selectToken.pages[pageUrl];
    if (Object.keys(fromTokenPages).includes(subPageKey)) {
        const subPage = fromTokenPages[subPageKey as keyof typeof fromTokenPages];
        if (subPage) { if (subPage.page) { return subPage.page } }
    } return null;
}

export { renderPage };
