// import { height } from 'components/OpenGraphImage' import Image from 'next/image' import React, { useEffect, useState } from 'react' export default function CardContent({ props }) { let { title, text, url } = props //console.log('urlnya', url) return (

{title}

{/*

{title}

*/}
{(function () { if (Array.isArray(url)) { if (url.length > 0) { return ( //
{url[0]['alt']} ) } else { return <> } } else { return ( <> {url[0]['alt']} ) } })()}
{(function () { if (Array.isArray(text)) { return text.map((content, i) => { if (i == 0 || i == 1) { return (

{content}

) } else { return (

{content}

) } }) } else { return

{text}

} })()} {/* */}
) } export {}