"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ShowMoreLink = void 0;
var react_1 = __importDefault(require("react"));
var ui_i18n_1 = __importDefault(require("ui-i18n"));
var Link_1 = __importDefault(require("@mui/material/Link"));
var styles_1 = require("./styles");
var ShowMoreLink = function (_a) {
    var suggestionsCount = _a.suggestionsCount, isExpanded = _a.isExpanded, onClick = _a.onClick, className = _a.className;
    var styles = (0, styles_1.useStyles)();
    return (react_1.default.createElement(Link_1.default, { component: "button", variant: "caption", underline: "none", onClick: onClick, className: className },
        react_1.default.createElement("span", { className: styles.linkLabel }, isExpanded
            ? ui_i18n_1.default.text('View less suggestions')
            : ui_i18n_1.default.text('View ${suggestionsCount} more suggestions', { suggestionsCount: suggestionsCount }))));
};
exports.ShowMoreLink = ShowMoreLink;
