UNPKG

react-layouts-builder

Version:

Lightweight and powerfull react layouts drag and drop

36 lines (33 loc) 700 B
import v4 from '../../node_modules/uuid/dist/esm-browser/v4.js'; var createLayoutContainer = function createLayoutContainer(block) { return { id: "".concat(v4()), type: 'Layout', tag: 'div', display: { name: 'mobile', orientation: '', order: 0 }, childrens: [{ id: "".concat(v4()), type: 'Layout', tag: 'div', block: block }] }; }; var createLayoutBlock = function createLayoutBlock(block) { return { id: "".concat(v4()), type: 'Layout', tag: 'div', display: { name: 'mobile', orientation: '', order: 0 }, block: block }; }; export { createLayoutBlock, createLayoutContainer };