import capitalize from "lodash/capitalize.js";
import { ViewModeItem } from "../types/index.js";
export const formatBlockName = (name) => capitalize(name).replace(/(block|-)/g, ' ');
export const getBlockId = ({ index, type }) => `${type}${index === undefined ? '' : `-${index}`}`;
export const checkIsMobile = (viewMode) => [ViewModeItem.Mobile, ViewModeItem.Tablet].includes(viewMode);
//# sourceMappingURL=index.js.map
