From 03899d5f8c3a5abd5231a81f320aa0795c0b6108 Mon Sep 17 00:00:00 2001 From: thinkholic Date: Tue, 11 Aug 2020 12:26:14 +0530 Subject: [PATCH] Add components/Image --- src/components/Image/index.jsx | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/components/Image/index.jsx diff --git a/src/components/Image/index.jsx b/src/components/Image/index.jsx new file mode 100644 index 0000000..237c377 --- /dev/null +++ b/src/components/Image/index.jsx @@ -0,0 +1,11 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +export default function Image({ src, alt, ...restProps }) { + return {alt}; +} + +Image.propTypes = { + src: PropTypes.string.isRequired, + alt: PropTypes.string, +};