Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3460 | Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3452 stevensc 1
import React from 'react';
2
import { Typography, Button, Box } from '@mui/material';
3
import AddIcon from '@mui/icons-material/Add';
4
 
5
export function PageHeader({ title, onAdd, labelAdd }) {
6
  return (
7
    <Box sx={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', mb: 2 }}>
8
      <Typography variant='h5'>{title}</Typography>
9
 
10
      {onAdd && (
11
        <Button variant='contained' startIcon={<AddIcon />} onClick={onAdd}>
12
          {labelAdd}
13
        </Button>
14
      )}
15
    </Box>
16
  );
17
}