Sha256: 0383cb3526196c9bbe5cedd5770b4b5218b66eef5d3f8fb1545c6a42e8b1407e
Contents?: true
Size: 610 Bytes
Versions: 31
Compression:
Stored size: 610 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { CubesIcon, CubeIcon } from '@patternfly/react-icons'; import './contentViewIcon.scss'; const ContentViewIcon = ({ composite }) => { const props = { title: composite ? 'composite' : 'single', className: 'svg-icon-centered', }; return ( <div className="svg-centered-container"> {composite ? <CubesIcon {...props} /> : <CubeIcon {...props} />} </div> ); }; ContentViewIcon.propTypes = { composite: PropTypes.bool, }; ContentViewIcon.defaultProps = { composite: false, }; export default ContentViewIcon;
Version data entries
31 entries across 31 versions & 1 rubygems