2022-01-24 06:46:53 +04:00
|
|
|
import {IconButton, Stack} from '@mui/material'
|
2022-01-23 21:46:44 +04:00
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
|
|
|
|
|
|
export default function Rezo({rezo}) {
|
|
|
|
|
const {tit, lyen, icon} = rezo
|
|
|
|
|
return (
|
2022-01-24 06:46:53 +04:00
|
|
|
<Stack direction='row' spacing={1}>
|
|
|
|
|
<IconButton title={tit} onClick={() => window.open(lyen, '_blank')}>
|
|
|
|
|
{icon}
|
|
|
|
|
</IconButton>
|
|
|
|
|
</Stack>
|
2022-01-23 21:46:44 +04:00
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Rezo.propTypes = {
|
|
|
|
|
rezo: PropTypes.object.isRequired
|
|
|
|
|
}
|