"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ShowMore = 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 KeyboardArrowDown_1 = __importDefault(require("@mui/icons-material/KeyboardArrowDown"));
var styles_1 = require("./styles");
var ShowMore = function (_a) {
    var moreNumber = _a.moreNumber, valueNumber = _a.valueNumber, onClick = _a.onClick;
    var styles = (0, styles_1.useStyles)();
    return (react_1.default.createElement(Link_1.default, { "data-reltio-id": "show-more", component: "button", variant: "caption", className: styles.link, onClick: onClick, underline: "none" },
        react_1.default.createElement(KeyboardArrowDown_1.default, { className: styles.icon }),
        moreNumber && valueNumber
            ? ui_i18n_1.default.text('Show ${moreNumber} more of remaining ${valueNumber} value', { moreNumber: moreNumber, valueNumber: valueNumber })
            : ui_i18n_1.default.text('Show more')));
};
exports.ShowMore = ShowMore;
