import Image from "next/image"

function Detail({ data }) {
    return (
        <div>
            <Image
                className="rounded-[8px] overflow-hidden"
                src={data.cover}
                alt="cover-blog"
                height={570}
                width={808}
            />
            <div dangerouslySetInnerHTML={{ __html: data.caption }} />
            {/* <p >{data.caption}</p> */}
        </div>
    )
}

export default Detail