import {IconButton, Stack, Link} from '@mui/material'
import PropTypes from 'prop-types'

export default function Rezo({rezo}) {
  const {tit, lyen, icon} = rezo
  return (
    <Stack direction='row' spacing={1}>
      <Link target='_blank' rel='noreferrer' href={lyen}>
        <IconButton title={tit}>
          {icon}
        </IconButton>
      </Link>
    </Stack>
  )
}

Rezo.propTypes = {
  rezo: PropTypes.object.isRequired
}
