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.

1234567891011121314151617181920212223242526272829
  1. import { Box } from '@mui/system';
  2. import { ReactNode } from 'react';
  3. interface CardContainerProps {
  4. children: ReactNode;
  5. }
  6. const CardContainer: React.FC<CardContainerProps> = ({ children }) => {
  7. return (
  8. <Box
  9. sx={{
  10. ml: { md: 2 },
  11. mt: { xs: 5, md: 0 },
  12. display: 'flex',
  13. flexDirection: {
  14. xs: 'column',
  15. sm: 'row',
  16. lg: 'column',
  17. },
  18. justifyContent: { sm: 'flex-start' },
  19. flexWrap: 'wrap',
  20. }}
  21. >
  22. {children}
  23. </Box>
  24. );
  25. };
  26. export default CardContainer;