"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkIsMobile = exports.getBlockId = exports.formatBlockName = void 0;
const tslib_1 = require("tslib");
const capitalize_1 = tslib_1.__importDefault(require("lodash/capitalize.js"));
const types_1 = require("../types/index.js");
const formatBlockName = (name) => (0, capitalize_1.default)(name).replace(/(block|-)/g, ' ');
exports.formatBlockName = formatBlockName;
const getBlockId = ({ index, type }) => `${type}${index === undefined ? '' : `-${index}`}`;
exports.getBlockId = getBlockId;
const checkIsMobile = (viewMode) => [types_1.ViewModeItem.Mobile, types_1.ViewModeItem.Tablet].includes(viewMode);
exports.checkIsMobile = checkIsMobile;
//# sourceMappingURL=index.js.map
