"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TargetBox = void 0;
var react_1 = __importDefault(require("react"));
var classnames_1 = __importDefault(require("classnames"));
var ui_i18n_1 = __importDefault(require("ui-i18n"));
var Typography_1 = __importDefault(require("@mui/material/Typography"));
var FileDropZone_1 = require("../../../FileDropZone");
var SelectImageButton_1 = require("../SelectImageButton");
var UploadIcon_1 = __importDefault(require("../../../icons/UploadIcon"));
var constants_1 = require("../../constants");
var TargetBox_module_css_1 = __importDefault(require("./TargetBox.module.css"));
var TargetBox = function (_a) {
    var onAppendFile = _a.onAppendFile, className = _a.className;
    return (react_1.default.createElement(FileDropZone_1.FileDropZone, { className: (0, classnames_1.default)(TargetBox_module_css_1.default.root, className), onFileDrop: onAppendFile },
        react_1.default.createElement(UploadIcon_1.default, { className: TargetBox_module_css_1.default.icon }),
        react_1.default.createElement(Typography_1.default, { className: TargetBox_module_css_1.default.title }, ui_i18n_1.default.text('Drag an image here')),
        react_1.default.createElement(Typography_1.default, { className: TargetBox_module_css_1.default.description }, ui_i18n_1.default.text('Acceptable image types would include JPG, PNG, TIFF, GIF, BMP. Maximum image size: ${MAX_IMAGE_SIZE}Mb', {
            MAX_IMAGE_SIZE: constants_1.MAX_IMAGE_SIZE
        })),
        react_1.default.createElement(SelectImageButton_1.SelectImageButton, { onAppendFile: onAppendFile })));
};
exports.TargetBox = TargetBox;
