import React, { useState } from 'react';
import {
Accordion, AccordionDetails, AccordionSummary, Container, makeStyles, Paper, Slider, Tooltip, Typography,
} from '@material-ui/core';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import MainToolbar from '../MainToolbar';
import Map from '../map/Map';
import t from '../common/localization';
import ReplayPathMap from '../map/ReplayPathMap';
import PositionsMap from '../map/PositionsMap';
import { formatPosition } from '../common/formatter';
import ReportFilter from './ReportFilter';
const useStyles = makeStyles((theme) => ({
root: {
height: '100%',
display: 'flex',
flexDirection: 'column',
},
controlPanel: {
position: 'absolute',
bottom: theme.spacing(5),
left: '50%',
transform: 'translateX(-50%)',
},
controlContent: {
padding: theme.spacing(2),
marginBottom: theme.spacing(2),
},
configForm: {
display: 'flex',
flexDirection: 'column',
},
}));
const TimeLabel = ({ children, open, value }) => (