export default function BlogList({ data }) {
  return (
    <div className="container mt-5 blogcontainer mb-5">
      <p className="text-muted">{data.date}</p>
      {data.blogList.map((items, index) => (
        <div key={index} className="blog-item">
          {items.heading ? <h2>{items.heading}</h2> : ""}
          <div dangerouslySetInnerHTML={{ __html: items.content }} />
        </div>
      ))}
    </div>
  );
}
