Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3040 Rev 3719
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react';
2
import { CardContent, CardHeader } from '@mui/material'
2
import { CardContent, CardHeader } from '@mui/material';
3
 
3
 
4
import Widget from '@components/UI/Widget'
4
import Widget from '@components/UI/Widget';
5
 
5
 
6
const ProfileWidget = ({ title = '', action = null, children }) => {
6
const ProfileWidget = ({ title = '', action = null, children }) => {
7
  return (
7
  return (
8
    <Widget>
8
    <Widget>
9
      <CardHeader
9
      <CardHeader
10
        title={title}
10
        title={title}
11
        action={action}
11
        action={action}
12
        sx={{ paddingBottom: 0 }}
12
        sx={{ paddingBottom: 0 }}
13
        titleTypographyProps={{
13
        titleTypographyProps={{
14
          variant: 'h2',
14
          variant: 'h2',
15
          component: 'h2'
15
          component: 'h2'
16
        }}
16
        }}
17
      />
17
      />
18
      <CardContent>{children}</CardContent>
18
      <CardContent>{children}</CardContent>
19
    </Widget>
19
    </Widget>
20
  )
20
  );
21
}
21
};
22
 
22
 
23
export default ProfileWidget
23
export default ProfileWidget;