import React from 'react';
import { UserAccountAccountPage } from './UserAccountAccountPage';
import { UserAccountCreateAccessTokenPage } from './UserAccountCreateAccessTokenPage';
import { UserAccountEmailsPage } from './UserAccountEmailsPage';
import { UserAccountProfilePage } from './UserAccountProfilePage';
import { UserAccountTokensPage } from './UserAccountTokensPage';
export const userAccountAreaRoutes = [
    // Render empty page if no settings page selected
    {
        path: '/profile',
        exact: true,
        // tslint:disable-next-line:jsx-no-lambda
        render: props => React.createElement(UserAccountProfilePage, Object.assign({}, props)),
    },
    {
        path: '/account',
        exact: true,
        // tslint:disable-next-line:jsx-no-lambda
        render: props => React.createElement(UserAccountAccountPage, Object.assign({}, props)),
        condition: ({ externalAuthEnabled }) => externalAuthEnabled,
    },
    {
        path: '/emails',
        exact: true,
        // tslint:disable-next-line:jsx-no-lambda
        render: props => React.createElement(UserAccountEmailsPage, Object.assign({}, props)),
    },
    {
        path: '/tokens',
        exact: true,
        // tslint:disable-next-line:jsx-no-lambda
        render: props => React.createElement(UserAccountTokensPage, Object.assign({}, props)),
        condition: () => window.context.accessTokensAllow !== 'none',
    },
    {
        path: '/tokens/new',
        exact: true,
        // tslint:disable-next-line:jsx-no-lambda
        render: props => React.createElement(UserAccountCreateAccessTokenPage, Object.assign({}, props)),
        condition: () => window.context.accessTokensAllow !== 'none',
    },
];
//# sourceMappingURL=routes.js.map