import React from "react" import Tabs from "@mui/material/Tabs" import Tab from "@mui/material/Tab" import Box from "@mui/material/Box" interface Tabs { id: number label: string value: string } export const TabContainer = ({ tabList, settime, setcurrentTab }: any) => { const [value, setValue] = React.useState(0) const handleChange = (event: React.SyntheticEvent, newValue: number) => { console.log(event) console.log(newValue, 123123123) setcurrentTab(newValue) setValue(newValue) settime() } return ( {" "} {tabList.map((e: any) => ( ))} ) }