16 lines
352 B
JavaScript
16 lines
352 B
JavaScript
|
|
import {Box} from '@mui/material'
|
||
|
|
import PropTypes from 'prop-types'
|
||
|
|
|
||
|
|
export default function Rezo({rezo}) {
|
||
|
|
const {tit, lyen, icon} = rezo
|
||
|
|
return (
|
||
|
|
<Box title={tit} sx={{cursor: 'pointer', marginLeft: '20px'}} onClick={() => window.open(lyen, '_blank')}>
|
||
|
|
{icon}
|
||
|
|
</Box>
|
||
|
|
)
|
||
|
|
}
|
||
|
|
|
||
|
|
Rezo.propTypes = {
|
||
|
|
rezo: PropTypes.object.isRequired
|
||
|
|
}
|