UNPKG

react-feather

Version:
36 lines (31 loc) 753 B
import React from 'react'; import PropTypes from 'prop-types'; const Flag = props => { const { color, size, ...otherProps } = props; return ( <svg xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 24 24" fill="none" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...otherProps} > <path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z" /> <line x1="4" y1="22" x2="4" y2="15" /> </svg> ); }; Flag.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), }; Flag.defaultProps = { color: 'currentColor', size: '24', }; export default Flag;