import * as React from 'react'; import * as types from '../types'; let validation = ({ Element, data, value }: types.Part.ValidationProps) => { return null; }; const Logic = ({ Element, Component, onChange, data, children, ...props }: types.Part.LogicProps) => { return {children}; }; let hLevel = { "1": ({ children, ...props }) =>

{children}

, "2": ({ children, ...props }) =>

{children}

, "3": ({ children, ...props }) =>

{children}

, "4": ({ children, ...props }) =>

{children}

, "5": ({ children, ...props }) =>
{children}
, "6": ({ children, ...props }) =>
{children}
, }; const Component = ({ level, text, children, ...props }) => { let ChosenH = hLevel[level]; let content = children?.length > 0 ? children : text; return {content} }; let Part: types.Part.Part = { Component, Logic, validation }; export { Part as h };