import * as React from 'react';
import { ResultContainer } from '../../components/ResultContainer';
import { RepoLink } from '../../repo/RepoLink';
import { eventLogger } from '../../tracking/eventLogger';
import { RepositoryIcon } from '../../util/icons'; // TODO: Switch to mdi icon
const logClickOnText = () => eventLogger.log('RepositorySearchResultClicked');
export const RepositorySearchResult = (props) => (React.createElement(ResultContainer, { titleClassName: "repository-search-result__title", icon: RepositoryIcon, title: React.createElement(React.Fragment, null,
        React.createElement(RepoLink, { repoPath: props.result.name, to: props.result.url, 
            // tslint:disable-next-line:jsx-no-lambda
            onClick: () => {
                logClickOnText();
                props.onSelect();
            } }),
        React.createElement("span", { className: "repository-search-result__spacer" }),
        React.createElement("small", null, "Repository name match")) }));
//# sourceMappingURL=RepositorySearchResult.js.map