import React, { ReactNode } from "react"; import Image from "next/image"; import { StaticImport } from "next/dist/shared/lib/get-img-props"; interface ContentProps { title: string, heroImgSrc: string | StaticImport | null, description?: string, innerChildren?: ReactNode } const Content = ({ title = '', heroImgSrc = '', description = '', innerChildren = <> }: ContentProps) => { return (
{title}
{heroImgSrc &&
}
{description}
{innerChildren}
); }; export default Content;