import React, { FC } from 'react'; import { Redirect, Route, Switch } from 'react-router-dom'; import { PageHeader, PageTabProps, PageTabs } from '@frontegg/react-core'; import { TenantApiTokens, UserApiTokens } from '@frontegg/react-auth'; import { routes } from '../../../routes'; import './APIManagement.scss'; const tabs: PageTabProps[] = [ { Title: () => <>Account, route: `${routes.api.path}/account`, comp: () => , }, { Title: () => <>Personal, route: `${routes.api.path}/personal`, comp: () => , }, ]; export const APIManagement: FC = () => ( <> {tabs.map((tab: any) => ( {tab.comp} ))} );