'use strict';
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
require("../../stylesheets/attachments/image-caret.scss");
const React = __importStar(require("react"));
const classnames_1 = __importDefault(require("classnames"));
const filesize_1 = __importDefault(require("../../utils/filesize"));
class ImageCaret extends React.PureComponent {
    render() {
        const { size, open, onClick, block } = this.props;
        return (React.createElement("span", { className: classnames_1.default('attachment__image-caret', {
                'attachment__image-caret--block': block
            }) },
            "(",
            filesize_1.default(size),
            ")",
            React.createElement("span", { className: classnames_1.default('attachment__image-caret-icon icon-caret', {
                    'attachment__image-caret-icon--closed': !open
                }), onClick: onClick })));
    }
}
exports.default = ImageCaret;
//# sourceMappingURL=ImageCaret.js.map