Sha256: 3e4b4df0dadc0da63a79d5067b2f69538c6ba5b7fd6247816a07c582bc335b9f
Contents?: true
Size: 479 Bytes
Versions: 95
Compression:
Stored size: 479 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.oneOfType([PropTypes.string, PropTypes.number]).isRequired, title: PropTypes.string.isRequired, Icon: PropTypes.elementType.isRequired, }; export default IconWithCount;
Version data entries
95 entries across 95 versions & 1 rubygems