import * as React from 'react';
import { PageTitle } from '../../components/PageTitle';
import { Timestamp } from '../../components/time/Timestamp';
import { eventLogger } from '../../tracking/eventLogger';
/**
 * The user overview page.
 */
export class UserOverviewPage extends React.PureComponent {
    componentDidMount() {
        eventLogger.logViewEvent('UserOverview');
    }
    render() {
        return (React.createElement("div", { className: "user-page user-overview-page" },
            React.createElement(PageTitle, { title: this.props.user.username }),
            React.createElement("p", null,
                this.props.user.displayName ? (React.createElement(React.Fragment, null,
                    this.props.user.displayName,
                    " (",
                    this.props.user.username,
                    ")")) : (this.props.user.username),
                ' ',
                "started using Sourcegraph ",
                React.createElement(Timestamp, { date: this.props.user.createdAt }),
                ".")));
    }
}
//# sourceMappingURL=UserOverviewPage.js.map