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'; import SupportCaroster from '../SupportCaroster'; interface Props { eventName: string; title: string; showImage?: boolean; } const NoCar = ({eventName, title, showImage}: Props) => { const {t} = useTranslation(); const theme = useTheme(); return ( {title} {showImage && ( )} {t('event.no_travel.desc')} ); }; export default NoCar;