import React from "react";
import Image from "next/image";

const Content = ({
    title = '',
    heroImgSrc,
    description = ''
}) => {
    return (
        <div className="p-4 flex flex-col">
            <div className="pb-4 border-b-2 border-white">{title}</div>
            {heroImgSrc && <div><Image src={heroImgSrc} alt=""/></div>}
            <div>{description}</div>
        </div>
    );
};

export default Content;