import React, { useState } from 'react';
import { Accordion, AccordionDetails, AccordionSummary, Button, Container, FormControl, 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 FilterForm from './FilterForm';
import ReplayPathMap from '../map/ReplayPathMap';
import PositionsMap from '../map/PositionsMap';
import { formatPosition } from '../common/formatter';
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 }) => {
return (