import React from 'react'; import PropTypes from 'prop-types'; import { IconText, IconWrapper } from '@buffetjs/styles'; import Icon from '../Icon'; function PrefixIcon({ type, icon }) { if (icon) { return ( ); } if (type === 'search') { return ( ); } if (type === 'email') { return ; } return null; } PrefixIcon.defaultProps = { icon: null, }; PrefixIcon.propTypes = { icon: PropTypes.node, type: PropTypes.string.isRequired, }; export default PrefixIcon;