| 12345678910111213141516171819202122 |
- import { Typography } from '@mui/material';
- import { Box } from '@mui/system';
-
- const TabPanel = ({ children, value, index, ...other }) => {
- return (
- <div
- role="tabpanel"
- hidden={value !== index}
- id={`simple-tabpanel-${index}`}
- aria-labelledby={`simple-tab-${index}`}
- {...other}
- >
- {value === index && (
- <Box sx={{ p: 3 }}>
- <Typography>{children}</Typography>
- </Box>
- )}
- </div>
- );
- };
-
- export default TabPanel;
|