import React from "react"; import SplitPane from "react-split-pane"; import theme from "./theme"; import GraphCommitDisplay from "./GraphCommitDisplay"; import GraphInfoTabs from "./GraphInfoTabs"; import DrawGraph from "./DrawGraph"; const resizerStyle = { background: theme.palette.text.secondary, width: "1px", cursor: "col-resize", margin: "1px", padding: "1px", height: "100%", }; const topPaneStyle = { height: "100vh", overflow: "visible", }; export default function App() { const [infosize, setInfosize] = React.useState(450); const [drawsize, setDrawsize] = React.useState( window.screen.width - infosize ); React.useEffect(() => { setInfosize(window.screen.width - drawsize); }, [drawsize]); return ( setDrawsize(window.screen.width - size)} > ); }