import * as React from "react"; import { Card as MuiCard, CardActions, Grid, Stack, Theme, } from "@mui/material"; import Typography from "@mui/material/Typography"; import { CardActionArea } from "@mui/material"; import { EventEvent, HideType } from "../../../../types/types"; import { SxProps } from "@mui/system"; import Time from "../../atoms/Time"; import { getEventTime } from "../../../helpers/displayEvent"; import AddCal from "../AddCal/AddCal"; import { isNotHidden } from "../../../helpers/common"; import EventTitle from "../../atoms/EventTitle"; import Tags from "../Tags"; import InlineImage from "../InlineImage/InlineImage"; interface Props { dateFormat: string; timeFormat: string; description?: string; hidedescription?: HideType; hideimages?: HideType; truncatedescription: string; link?: string; tags: string[]; sx?: SxProps | undefined; listClass?: string; event: EventEvent; hideaddcal?: HideType; handleClick?: React.MouseEventHandler; } export default function ModernStandardInner(props: Props) { const { link, listClass, hideaddcal, handleClick } = props; return ( {link ? ( ) : ( <> )} {!link && handleClick ? ( ) : ( <> )} {isNotHidden(hideaddcal) ? ( ) : ( "" )} ); } function CustomCardContent(props: Props) { const { hidedescription, hideimages, truncatedescription, event } = props; const eventTime = getEventTime(event); return ( ); }