import * as React from 'react';
import { Link } from 'react-router-dom';
import { DismissibleAlert } from '../components/DismissibleAlert';
import { eventLogger } from '../tracking/eventLogger';
import { CircleChevronRightIcon } from '../util/icons'; // TODO: Switch to mdi icon
const onClickCTA = () => {
    eventLogger.log('AlertNoReposEnabledCTAClicked');
};
/**
 * A global alert telling the site admin that they need to enable access to repositories
 * on this site.
 */
export const NoRepositoriesEnabledAlert = ({ className = '' }) => (React.createElement(DismissibleAlert, { partialStorageKey: "noRepositoriesEnabled", className: `alert alert-success alert-animated-bg d-flex align-items-center ${className}` },
    React.createElement(Link, { className: "site-alert__link", to: "/site-admin/repositories", onClick: onClickCTA },
        React.createElement(CircleChevronRightIcon, { className: "icon-inline site-alert__link-icon" }),
        ' ',
        React.createElement("span", { className: "underline" }, " Select repositories to enable")),
    "\u00A0to start searching and browsing"));
//# sourceMappingURL=NoRepositoriesEnabledAlert.js.map