import React from "react"; import RoomIcon from "@mui/icons-material/Room"; import { Typography, useTheme } from "@mui/material"; interface EventLocationProps { locationName?: string; } const EventLocation = (props: EventLocationProps) => { const { locationName } = props; const theme = useTheme(); if (!locationName) { return <>; } return ( {locationName} ); }; export default EventLocation;