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) => { let propsToPass = { ...Element.props, data, onChange, onClick: (evt) => Element.context?.onClick(evt, { data, onChange }) }; return {children}; }; const Component = ({ onClick, data, onChange, readonly, label }) => { if (readonly) { return ; } else { return ; } }; let Part: types.Part.Part = { Component, Logic, validation }; export { Part as button };