/*
 * Copyright (c) 2023 AccelByte Inc. All Rights Reserved
 * This is licensed software from AccelByte Inc, for limitations
 * and restrictions contact your company contract manager.
 */

import discoverySeedConfigs from 'seed/seed-latest--template-discovery.json'

import { RouteObject } from 'react-router-dom'
import { AppBuilderUtils } from '@od-shared/utils/AppBuilderUtils'
import { DiscoveryConfigData } from '@accelbyte/sdk-odinconfig/src/custom'
import { HomeRoute } from './routes/home'
import { StoreRoute } from './routes/store'
import { TwitchDropsRoute } from './routes/twitch-drops'
import { SupportRoute } from './routes/support'

const discoveryConfigs: DiscoveryConfigData = discoverySeedConfigs as DiscoveryConfigData
// @ts-ignore
export const styleString = AppBuilderUtils.convertConfigToCss(discoveryConfigs.globalPageConfig)

export const routes: RouteObject[] = [HomeRoute, StoreRoute, TwitchDropsRoute, SupportRoute]
