import React from "react"; import { isHidden } from "../../../helpers/common"; import { HideType } from "../../../../types/types"; import { Link, Typography } from "@mui/material"; import { Box } from "@mui/system"; interface EventDescriptionProps { description: string; title: string; url: string; hidedescription?: HideType; } const EventDescription = (props: EventDescriptionProps) => { const { description, title, url, hidedescription } = props; if (isHidden(hidedescription)) { return <>; } return ( {description}{" "} read more about {title} ); }; export default EventDescription;