form.js 492 B

1234567891011121314151617
  1. import Form from 'app/components/form';
  2. import { BlockWrapper } from 'app/components/block-wrapper'
  3. export default function ElementForm(props) {
  4. const { classContainerName, ...rest } = props
  5. return (
  6. <BlockWrapper {...props.blockWrapperProps}>
  7. <Form {...rest} />
  8. </BlockWrapper>
  9. );
  10. }
  11. export const renderForm = (formProps, onFormChange) => {
  12. return (
  13. <Form {...formProps} key="form" name={formProps.name} onChange={onFormChange} />
  14. )
  15. }