import * as React from 'react';
import { Link } from 'react-router-dom';
/**
 * A person's name, with a link to their Sourcegraph user profile if an associated user is found.
 */
export const PersonLink = ({ displayName, user, className = '', userClassName }) => (React.createElement(React.Fragment, null,
    React.createElement("span", { className: className }, displayName),
    user && (React.createElement(React.Fragment, null,
        ' ',
        "\u2014",
        ' ',
        React.createElement(Link, { to: user.url, className: `${className} ${userClassName || ''}`, title: user.displayName || displayName }, user.username)))));
//# sourceMappingURL=PersonLink.js.map