import React from 'react' import {Validation} from "./validate.js"; import {useShopStore} from "./shop_store"; import {ShowJSON} from "./ShowJSON"; /** * Components that renders the form to request quote. */ export function OrderForm() { const { email, note, isProcessing, updateEmail, updateNote, resetEmailValidation, submitForm, submitDisabled, } = useShopStore(state => ({ email: state.email, note: state.note, isProcessing: state.isProcessing, updateEmail: state.updateEmail, updateNote: state.updateNote, submitForm: state.submitForm, submitDisabled: state.submitDisabled, resetEmailValidation: state.resetEmailValidation })); return (