import { initApplication } from '@theorchard/suite-frontend';
import AboutPage from './pages/about';
import HomePage from './pages/home';

initApplication({
    mainNav: {
        beta: true,
        sections: [
            {
                id: 'main',
                items: [
                    { path: '/', title: 'Home' },
                    { path: '/about', title: 'About' },
                    { path: '/404', title: 'Not there' },
                ],
            },
            {
                id: 'advanced',
                title: 'Controlled features',
                items: [
                    {
                        path: '/feature1',
                        title: 'New feature',
                        featureFlags: ['sample_enabled'],
                    },
                    {
                        path: '/feature2',
                        title: 'Unstable feature',
                        featureFlags: ['sample_disabled'],
                    },
                ],
            },
        ],
    },
    routes: [
        { path: '/about', page: AboutPage },
        { path: '/', page: HomePage },
    ],
});
