"use strict";
exports.__esModule = true;
exports.createFileIcon = void 0;
var tslib_1 = require("tslib");
var react_1 = (0, tslib_1.__importDefault)(require("react"));
var FileIcon_1 = require("../FileIcon/FileIcon");
function createFileIcon(_a) {
    var m = _a.m, name = _a.name;
    var FileIconComponent = function (props) {
        function getSvgBySize(size) {
            switch (size) {
                case 'm':
                    return m;
                default:
                    return m;
            }
        }
        var Svg = getSvgBySize(props.size);
        return (react_1["default"].createElement(FileIcon_1.FileIcon, (0, tslib_1.__assign)({}, props, { className: (0, FileIcon_1.cnIconFile)(null, [name, props.className]) }),
            react_1["default"].createElement(Svg, { className: (0, FileIcon_1.cnIconFile)('Svg') }),
            props.children));
    };
    return FileIconComponent;
}
exports.createFileIcon = createFileIcon;
