import Typography from '@mui/material/Typography'; import {useTheme} from '@mui/material/styles'; import Box from '@mui/material/Box'; import {useTranslation} from 'react-i18next'; import ShareEvent from '../ShareEvent'; interface Props { eventName: string; title: string; image?: boolean; } const url = typeof window !== 'undefined' ? window.location.href : ''; const NoCar = ({eventName, title, image}: Props) => { const {t} = useTranslation(); const theme = useTheme(); return ( {title} {t('event.no_travel.desc')} ); }; export default NoCar;