diff --git a/components/common/Icon.js b/components/common/Icon.js index 8a794f61..e9d96eb5 100644 --- a/components/common/Icon.js +++ b/components/common/Icon.js @@ -1,8 +1,9 @@ import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './Icon.module.css'; -export default function Icon({ icon, className, size = 'medium', ...props }) { +function Icon({ icon, className, size = 'medium', ...props }) { return (
); } + +Icon.propTypes = { + className: PropTypes.string, + icon: PropTypes.node.isRequired, + size: PropTypes.oneOf(['xlarge', 'large', 'medium', 'small', 'xsmall']), +}; + +export default Icon;