import { Box, makeStyles, Tab, Tabs, Theme } from '@material-ui/core'; import { FC, useState } from 'react'; import { ITabListProps, ITabPanel } from './Types'; const useStyles = makeStyles((theme: Theme) => ({ wrapper: { '& .MuiTab-wrapper': { textTransform: 'capitalize', fontWeight: 'bold', color: '#323232', }, }, tab: { height: theme.spacing(0.5), backgroundColor: theme.palette.primary.main, }, tabContainer: { borderBottom: '1px solid #e9e9ed', }, tabContent: { minWidth: 0, marginRight: theme.spacing(3), }, tabPanel: { flexBasis: 0, flexGrow: 1, marginTop: theme.spacing(2), overflowY: 'auto', }, })); const TabPanel = (props: ITabPanel) => { const { children, value, index, className = '', ...other } = props; return (