Create rezo component

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-01-23 21:46:44 +04:00
parent c84c90967f
commit 58b46f4eac
+15
View File
@@ -0,0 +1,15 @@
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
}