import React from 'react'; import withIconSvg from '../helpers/withIconSvg'; export interface Props { size?: 's' | 'l'; } const YieldIcon: React.FC = (props) => { const { size, ...restProps } = props; switch (size) { case 'l': return ( ); case 's': default: return ( ); } }; YieldIcon.defaultProps = { size: 's', }; export default withIconSvg(YieldIcon, true, { additionalProps: [ { propName: 'size', type: 'select', options: ['s', 'l'], // todo: how to automatically get these options??? default: YieldIcon.defaultProps.size, }, ], tags: ['yield', 'caution', 'warning', 'error', 'outage'], });