/** ****************************************************************************
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Licensed under the Apache License Version 2.0 (the 'License'). You may not
* use this file except in compliance with the License. A copy of the License
* is located at
*
* http://www.apache.org/licenses/
* or in the 'license' file accompanying this file. This file is distributed on
* an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or
* implied. See the License for the specific language governing permissions and
* limitations under the License.
***************************************************************************** */
/* eslint-disable no-underscore-dangle */
import React, { createRef } from 'react';
import PropTypes from 'prop-types';
import Dropzone from 'react-dropzone';
import { NorthStarThemeProvider } from 'aws-northstar';
import { withStyles } from '@material-ui/core/styles';
import Container from '@material-ui/core/Container';
import Grid from '@material-ui/core/Grid';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import Tabs from '@material-ui/core/Tabs';
import Tab from '@material-ui/core/Tab';
import Box from '@material-ui/core/Box';
import Typography from '@material-ui/core/Typography';
import Link from '@material-ui/core/Link';
import DescriptionIcon from '@material-ui/icons/Description';
import FeedbackIcon from '@material-ui/icons/Feedback';
import './App.css';
import pkg from '../package.json';
import EmptyView from './EmptyView';
import DraggingView from './DraggingView';
import LoadingView from './LoadingView';
import SnapshotListView from './SnapshotListView';
import LogView from './LogView';
import SkewMetricsView from './SkewMetricsView';
import ApiCallMetricsView from './ApiCallMetricsView';
import RtcMetricsViewGroup from './RtcMetricsViewGroup';
import {
buildIndex, findExtras, resetIndex, hasSoftphoneMetrics, resetSoftphoneMetrics,
} from './utils/findExtras';
function TabPanel(props) {
const {
children, value, index, ...other
} = props;
return (