import PropTypes from 'prop-types'

import Grid from '@mui/material/Grid'
import KatAkey from './kat-akey'

export default function Statistik({statistik}) {
  return (
    <Grid container spacing={2}>
      <KatAkey tit='Paroles' kantite={statistik.countParole} href='/paroles' as='/paroles' />
      <KatAkey tit='Artistes' kantite={statistik.countArtiste} href='/awtis?paj&paj=1' as='/awtis/paj/1' />
    </Grid>
  )
}

Statistik.propTypes = {
  statistik: PropTypes.object.isRequired
}
