import React from "react"; import { Grid, Link, Typography } from "@mui/material"; interface Props { heading: string; readmore: string; url: string; } const Heading = (props: Props) => { const { heading, readmore, url } = props; return ( ); }; const HeadingMarkup = ({ heading }: { heading: string }) => { if (!heading) { return <>; } return {heading}; }; const ReadMore = ({ readmore, url }: { readmore: string; url: string }) => { if (!readmore || !url) { return <>; } return ( {readmore} ); }; export default Heading; export { HeadingMarkup, ReadMore };