import { TabContext, TabList, TabPanel } from "@mui/lab"; import { Box, Divider, Tab, useTheme } from "@mui/material"; import { useState } from "react"; import { SqlInjectionLogin } from "./SqlInjectionLogin"; import { SqlInjectionRegister } from "./SqlInjectionRegister"; import { SqlInjectionSetup } from "./SqlInjectionSetup"; export const SqlInjection = () => { // contexts const theme = useTheme(); // states const [subTabValue, setSubTabValue] = useState("setup"); // logic for switching tabs const subTabChangeEvent = (newTabValue: string) => { setSubTabValue(newTabValue); }; return ( { subTabChangeEvent(value); }} scrollButtons={true} sx={{ borderBottom: "1px solid " + theme.palette.divider, }} variant="standard" > {/* the logged in account details goes here */} ); };