import React, { useContext, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Button, Dialog, DialogActions, DialogContent, DialogTitle, Switch, Tooltip, Grid, } from '@mui/material'; import { WifiTetheringError } from '@mui/icons-material'; import Map from '../Map'; import { LatLng } from 'leaflet'; interface Props { open: boolean; orderType: number; onClose: (position: LatLng) => void; } const F2fMapDialog = ({ open = false, orderType, onClose }: Props): JSX.Element => { const { t } = useTranslation(); const [position, setPosition] = useState(); const [lowQuality, setLowQuality] = useState(true); const onSave = () => { if (position) onClose(position); }; return ( {t('Choose a location')}
setLowQuality((value) => !value)} />
); }; export default F2fMapDialog;