Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3047 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3047 Rev 3719
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react';
2
import { Box, styled } from '@mui/material'
2
import { Box, styled } from '@mui/material';
3
 
3
 
4
const MuiRow = styled(Box)(({ theme }) => ({
4
const MuiRow = styled(Box)(({ theme }) => ({
5
  display: 'flex',
5
  display: 'flex',
6
  flexWrap: 'wrap',
6
  flexWrap: 'wrap',
7
  gap: theme.spacing(0.5)
7
  gap: theme.spacing(0.5)
8
}))
8
}));
9
 
9
 
10
export default function Row({
10
export default function Row({ children, styles, direction = 'row', gap = 0.5, ...props }) {
11
  children,
-
 
12
  styles,
-
 
13
  direction = 'row',
-
 
14
  gap = 0.5,
-
 
15
  ...props
-
 
16
}) {
-
 
17
  return (
11
  return (
18
    <MuiRow sx={styles} {...props} flexDirection={direction} gap={gap}>
12
    <MuiRow sx={styles} {...props} flexDirection={direction} gap={gap}>
19
      {children}
13
      {children}
20
    </MuiRow>
14
    </MuiRow>
21
  )
15
  );
22
}
16
}