/* eslint-disable object-curly-newline */ import { Container, Head } from 'Components/Layout/Element'; import components from '../elements-components'; import elementsProps from '../elements-props'; import titles from '../elements-titles'; import types from '../elements-types'; import map from '../map'; const render = Object.keys(map).reduce((acc, elementName) => { const title = titles[elementName]; const valueName = map[elementName]; const Component = components[elementName]; const props = elementsProps[elementName]; const { builder } = types[elementName](); const Element = builder(Component, { elementName, valueName, }); acc[elementName] = { render: () => ( ), }; return acc; }, {}); export default render;