import React from 'react';
import { SettingsArea } from '../../settings/SettingsArea';
import { SiteAdminAlert } from '../../site-admin/SiteAdminAlert';
import { UserAccountArea } from '../account/UserAccountArea';
import { UserOverviewPage } from './UserOverviewPage';
export const userAreaRoutes = [
    {
        path: '',
        exact: true,
        // tslint:disable-next-line:jsx-no-lambda
        render: props => React.createElement(UserOverviewPage, Object.assign({}, props)),
    },
    {
        path: '/settings',
        exact: true,
        // tslint:disable-next-line:jsx-no-lambda
        render: props => (React.createElement(SettingsArea, Object.assign({}, props, { subject: props.user, isLightTheme: props.isLightTheme, extraHeader: React.createElement(React.Fragment, null,
                props.authenticatedUser &&
                    props.user.id !== props.authenticatedUser.id && (React.createElement(SiteAdminAlert, { className: "sidebar__alert" },
                    "Viewing settings for ",
                    React.createElement("strong", null, props.user.username))),
                React.createElement("p", null, "User settings override global and organization settings.")) }))),
    },
    {
        path: '/account',
        // tslint:disable-next-line:jsx-no-lambda
        render: props => (React.createElement(UserAccountArea, Object.assign({}, props, { routes: props.userAccountAreaRoutes, sideBarItems: props.userAccountSideBarItems, isLightTheme: props.isLightTheme }))),
    },
];
//# sourceMappingURL=routes.js.map