/* ---------------------------------- react --------------------------------- */ import { useState, SyntheticEvent } from 'react'; /* ---------------------------------- @mui ---------------------------------- */ import { Box, Tabs, Tab, Container, Grid, Card } from '@mui/material'; import { styled } from '@mui/material/styles'; /* ------------------------------- components ------------------------------- */ import Page from '../../components/Page'; /* ---------------------------------- hooks --------------------------------- */ import useSettings from '../../hooks/useSettings'; import List from './List'; /* ------------------------------ tabs setting ------------------------------ */ /* ---------------------------------- types --------------------------------- */ interface TabPanelProps { children?: React.ReactNode; index: number; value: number; } interface StyledTabsProps { children?: React.ReactNode; value: number; onChange: (event: React.SyntheticEvent, newValue: number) => void; } interface StyledTabProps { label: string; icon?: string | React.ReactElement; } /* -------------------------------- tab style ------------------------------- */ function TabPanel(props: TabPanelProps) { const { children, value, index, ...other } = props; return ( ); } function a11yProps(index: number) { return { id: `simple-tab-${index}`, 'aria-controls': `simple-tabpanel-${index}`, }; } const StyledTabs = styled((props: StyledTabsProps) => )({ backgroundColor: '#F4F6F8', padding: '0 24px', '& .MuiTabs-indicator': { display: 'flex', justifyContent: 'space-between', backgroundColor: 'transparent', }, '& .MuiTabs-indicatorSpan': { maxWidth: 40, backgroundColor: '#635ee7', }, }); const StyledTab = styled((props: StyledTabProps) => )( ({ theme }) => ({ textTransform: 'none', fontWeight: 600, color: theme.palette.grey[600], marginRight: '5rem', '&.Mui-selected': { color: '#212B36', borderBottom: '2px solid ' + theme.palette.primary.main, }, '&:hover': { color: '#212B36', opacity: 1, borderBottom: '2px solid ' + theme.palette.primary.main, }, }) ); /* -------------------------------------------------------------------------- */ export default function Drugs() { const { themeStretch } = useSettings(); const [value, setValue] = useState(0); const handleChange = (event: SyntheticEvent, newValue: number) => { setValue(newValue); }; return ( Item Two Item Two ); }