import{r as o}from"./vendor-react-wBh_31cN.js";import{p as i}from"./utils--RO2U47e.js";const u=r=>o.useMemo(()=>r?Object.entries(r.properties).map(([t,e])=>{var p,s;return{name:t,description:e.description,required:((p=r.required)==null?void 0:p.includes(t))??!1,type:e.type,typeLabel:String(e.type==="array"?`Array of ${i.getByValue(((s=e.items)==null?void 0:s.type)||"")}`:i.getByValue(e.type)),enumValues:e.enum}}):[],[r]);export{u};
