From 58b46f4eac11acc727643b84ce00b5a0b9cf3885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sun, 23 Jan 2022 21:46:44 +0400 Subject: [PATCH] Create rezo component --- components/rezo.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 components/rezo.js diff --git a/components/rezo.js b/components/rezo.js new file mode 100644 index 0000000..3b611a2 --- /dev/null +++ b/components/rezo.js @@ -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 ( + window.open(lyen, '_blank')}> + {icon} + + ) +} + +Rezo.propTypes = { + rezo: PropTypes.object.isRequired +}