import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import AppBar from "@material-ui/core/AppBar"; import Tabs from "@material-ui/core/Tabs"; import Tab from "@material-ui/core/Tab"; import NodeList from "./NodeList"; import EdgeList from "./EdgeList"; import InfoExpander from "./InfoExpander"; import AlgorithmExpander from "./AlgorithmExpander"; function a11yProps(index) { return { id: `scrollable-auto-tab-${index}`, "aria-controls": `scrollable-auto-tabpanel-${index}`, }; } const useStyles = makeStyles((theme) => ({ root: { flexGrow: 1, width: "100%", height: "100%", backgroundColor: theme.palette.background.paper, }, })); export default function GraphInfoTabs({ nodes, width }) { const classes = useStyles(); const [tab, setTab] = React.useState(1); const [transPathFrom, setTransPathFrom] = React.useState(''); const [transPathTo, setTransPathTo] = React.useState(''); const handleChange = (event, newValue) => { setTab(newValue); }; const handleTransPath = (event, fromNode, toNode) => { setTransPathFrom(fromNode); setTransPathTo(toNode); if (fromNode != '' && toNode != '') { setTab(3); } }; return (
); }