sanity api call html
// example with props
const Contact = ({ sanityName }) => {
return (
{sanityName.length > 0
? sanityName.map((sanityItem, id) => (
<div key={id}>
<h2>{sanityItem.sanityTitle}</h2>
<p>{sanityItem.sanityText}</p>
<img>{sanityItem.sanityImage}</img>
</div>
export default Contact