import Button from '@mui/material/Button'; import Typography from '@mui/material/Typography'; import {useTheme} from '@mui/material/styles'; import {useTranslation} from 'next-i18next'; import {useRouter} from 'next/router'; import Box from '@mui/material/Box'; import ShareEvent from '../ShareEvent'; import SupportCaroster from '../SupportCaroster'; interface Props { eventName: string; title: string; isCarosterPlus: string; showImage?: boolean; } const NoCar = ({eventName, title, isCarosterPlus, showImage}: Props) => { const {t} = useTranslation(); const theme = useTheme(); const router = useRouter(); const {uuid} = router.query; return ( {title} {showImage && ( )} {isCarosterPlus ? t('event.no_travel.plus.desc') : t('event.no_travel.desc')} {!isCarosterPlus && ( )} {isCarosterPlus && ( )} ); }; export default NoCar;