Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3452 | Rev 3462 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

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