"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var FileSize = function (_a) {
    var size = _a.size;
    var value = Number(size);
    if (size >= 1048576) {
        return react_1.default.createElement(react_1.default.Fragment, null, (value / 1048576).toFixed(2) + " MB");
    }
    return react_1.default.createElement(react_1.default.Fragment, null, (value / 1024).toFixed(0) + " KB");
};
exports.default = FileSize;
//# sourceMappingURL=file-size.js.map