const e=(e,r)=>l=>{if("string"!=typeof l)throw new Error("Only keys of type string are allowed");const o=l.charAt(0).toUpperCase()+l.slice(1),t=e[l];return{key:l,value:Array.isArray(t)?[...t]:t,label:e["label"+o],placeholder:e["placeholder"+o],onInput:r.bind(e,l)}};export{e as l};