"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.HeaderLeft = 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 HeaderLeft = function (_a) {
    var selectedItems = _a.selectedItems, items = _a.items, onSelectAll = _a.onSelectAll, onClearAll = _a.onClearAll;
    var styles = (0, styles_1.useStyles)();
    var selectedAllItems = selectedItems.length === items.length;
    return (react_1.default.createElement(Link_1.default, { component: "button", underline: "none", classes: { button: styles.selectButton }, onClick: selectedAllItems ? onClearAll : onSelectAll }, selectedAllItems ? ui_i18n_1.default.text('Clear selection') : ui_i18n_1.default.text('Select all images')));
};
exports.HeaderLeft = HeaderLeft;
