You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TabPanel.jsx 492B

12345678910111213141516171819202122
  1. import { Typography } from '@mui/material';
  2. import { Box } from '@mui/system';
  3. const TabPanel = ({ children, value, index, ...other }) => {
  4. return (
  5. <div
  6. role="tabpanel"
  7. hidden={value !== index}
  8. id={`simple-tabpanel-${index}`}
  9. aria-labelledby={`simple-tab-${index}`}
  10. {...other}
  11. >
  12. {value === index && (
  13. <Box sx={{ p: 3 }}>
  14. <Typography>{children}</Typography>
  15. </Box>
  16. )}
  17. </div>
  18. );
  19. };
  20. export default TabPanel;