Sha256: dee3e76ec202951f5ea062b5775d0b0f63e88b9d0f7614a7d8c187bad9f91d12
Contents?: true
Size: 438 Bytes
Versions: 46
Compression:
Stored size: 438 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import './IconWithCount.scss'; const IconWithCount = ({ count, title, Icon }) => ( <React.Fragment> <Icon title={title} className="ktable-cell-icon" /> {count} </React.Fragment> ); IconWithCount.propTypes = { count: PropTypes.number.isRequired, title: PropTypes.string.isRequired, Icon: PropTypes.elementType.isRequired, }; export default IconWithCount;
Version data entries
46 entries across 46 versions & 1 rubygems