"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Marginator = void 0;
var react_1 = __importDefault(require("react"));
var Marginator = function (_a) {
    var margin = _a.margin, level = _a.level, className = _a.className, children = _a.children;
    if (level != null) {
        return (react_1.default.createElement("div", { style: { marginLeft: level * margin }, className: className }, children));
    }
    else {
        return children;
    }
};
exports.Marginator = Marginator;
