import type { ReactElement } from 'react' import { Route, Routes } from 'react-router-dom' import { AccountChequebook } from './pages/account/chequebook/AccountChequebook' import { AccountFeeds } from './pages/account/feeds/AccountFeeds' import { AccountStamps } from './pages/account/stamps/AccountStamps' import { AccountWallet } from './pages/account/wallet/AccountWallet' import CreateNewFeed from './pages/feeds/CreateNewFeed' import { FeedSubpage } from './pages/feeds/FeedSubpage' import UpdateFeed from './pages/feeds/UpdateFeed' import { Download } from './pages/files/Download' import { Share } from './pages/files/Share' import { Upload } from './pages/files/Upload' import { UploadLander } from './pages/files/UploadLander' import GiftCards from './pages/gift-code' import Info from './pages/info' import LightModeRestart from './pages/restart/LightModeRestart' import Wallet from './pages/rpc' import Confirmation from './pages/rpc/Confirmation' import Settings from './pages/settings' import { CreatePostageStampPage } from './pages/stamps/CreatePostageStampPage' import Status from './pages/status' import { BankCardTopUpIndex } from './pages/top-up/BankCardTopUpIndex' import { CryptoTopUpIndex } from './pages/top-up/CryptoTopUpIndex' import { GiftCardFund } from './pages/top-up/GiftCardFund' import { GiftCardTopUpIndex } from './pages/top-up/GiftCardTopUpIndex' import { Swap } from './pages/top-up/Swap' export enum ROUTES { INFO = '/', FILES = '/files', UPLOAD = '/files/upload', UPLOAD_IN_PROGRESS = '/files/upload/workflow', DOWNLOAD = '/files/download', HASH = '/files/hash/:hash', SETTINGS = '/settings', STATUS = '/status', WALLET = '/wallet', CONFIRMATION = '/wallet/confirmation', TOP_UP_CRYPTO = '/top-up/crypto', TOP_UP_CRYPTO_SWAP = '/top-up/crypto/swap', TOP_UP_BANK_CARD = '/top-up/bank-card', TOP_UP_BANK_CARD_SWAP = '/top-up/bank-card/swap', TOP_UP_GIFT_CODE = '/top-up/gift-code', TOP_UP_GIFT_CODE_FUND = '/top-up/gift-code/fund/:privateKeyString', RESTART = '/restart', RESTART_LIGHT = '/light-mode-restart', ACCOUNT_WALLET = '/account/wallet', ACCOUNT_CHEQUEBOOK = '/account/chequebook', ACCOUNT_STAMPS = '/account/stamps', ACCOUNT_STAMPS_NEW = '/account/stamps/new', ACCOUNT_FEEDS = '/account/feeds', ACCOUNT_FEEDS_NEW = '/account/feeds/new', ACCOUNT_FEEDS_UPDATE = '/account/feeds/update/:hash', ACCOUNT_FEEDS_VIEW = '/account/feeds/:uuid', ACCOUNT_INVITATIONS = '/account/invitations', } export const ACCOUNT_TABS = [ ROUTES.ACCOUNT_WALLET, ROUTES.ACCOUNT_CHEQUEBOOK, ROUTES.ACCOUNT_STAMPS, ROUTES.ACCOUNT_FEEDS, ] const BaseRouter = (): ReactElement => ( } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> ) export default BaseRouter