Make button with rezo icons
This commit is contained in:
+5
-3
@@ -1,12 +1,14 @@
|
|||||||
import {Box} from '@mui/material'
|
import {IconButton, Stack} from '@mui/material'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
export default function Rezo({rezo}) {
|
export default function Rezo({rezo}) {
|
||||||
const {tit, lyen, icon} = rezo
|
const {tit, lyen, icon} = rezo
|
||||||
return (
|
return (
|
||||||
<Box title={tit} sx={{cursor: 'pointer', marginLeft: '20px'}} onClick={() => window.open(lyen, '_blank')}>
|
<Stack direction='row' spacing={1}>
|
||||||
|
<IconButton title={tit} onClick={() => window.open(lyen, '_blank')}>
|
||||||
{icon}
|
{icon}
|
||||||
</Box>
|
</IconButton>
|
||||||
|
</Stack>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user