import { Box } from '@mui/system';
import { ReactNode } from 'react';

interface CardContainerProps {
  children: ReactNode;
}

const CardContainer: React.FC<CardContainerProps> = ({ children }) => {
  return (
    <Box
      sx={{
        ml: { md: 2 },
        mt: { xs: 5, md: 0 },
        display: 'flex',
        flexDirection: {
          xs: 'column',
          sm: 'row',
          lg: 'column',
        },
        justifyContent: { sm: 'flex-start' },
        flexWrap: 'wrap',
      }}
    >
      {children}
    </Box>
  );
};

export default CardContainer;
