globalThis.process??={},globalThis.process.env??={};import{t as e}from"./jsx-runtime.Cwe9agoV.js";import{n as t,t as n}from"./Input.Dmk1pnOs.js";import{t as r}from"./Textarea.DXr4wlRa.js";/* empty css             */var i=e();function a({initialValues:e={},errors:a=[]}){let o=new Map(a.map(e=>[e.field,e.message]));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t,{label:`Name`,htmlFor:`contact-name`,required:!0,error:o.get(`name`),children:(0,i.jsx)(n,{id:`contact-name`,name:`name`,type:`text`,required:!0,minLength:1,maxLength:120,defaultValue:e.name??``})}),(0,i.jsx)(t,{label:`Email`,htmlFor:`contact-email`,required:!0,error:o.get(`email`),children:(0,i.jsx)(n,{id:`contact-email`,name:`email`,type:`email`,required:!0,maxLength:254,defaultValue:e.email??``})}),(0,i.jsx)(t,{label:`Message`,htmlFor:`contact-message`,required:!0,error:o.get(`message`),children:(0,i.jsx)(r,{id:`contact-message`,name:`message`,rows:6,required:!0,minLength:1,maxLength:5e3,defaultValue:e.message??``})})]})}export{a as default};