import {useReducer} from 'react'; import {Box, Container, Paper, Typography, useMediaQuery} from '@mui/material'; import theme from '../../theme'; import {EventEntity, TripAlertEntity} from '../../generated/graphql'; import AlertsHeader from './AlertsHead'; import AlertsForm from './AlertsForm'; import {useTranslation} from 'react-i18next'; interface Props { event: EventEntity; tripAlertEntity: TripAlertEntity; } const Alerts = ({event, tripAlertEntity}: Props) => { const isMobile = useMediaQuery(theme.breakpoints.down('md')); const [switchChecked, handleToggle] = useReducer( i => !i, tripAlertEntity?.attributes.enabled || false ); const {t} = useTranslation(); return ( {t('alert.description')} ); }; export default Alerts;