Sha256: 3d72090d4631e34a18d2d11cd3b77edfa6bb784141a494395ca7d766151b7268
Contents?: true
Size: 809 Bytes
Versions: 15
Compression:
Stored size: 809 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { CubeIcon, CubesIcon } from '@patternfly/react-icons'; import './contentViewName.scss'; const ContentViewName = ({ composite, name, cvId }) => { const props = { key: cvId, title: composite ? 'composite' : 'single', style: { margin: '1px 5px' }, className: 'svg-icon-centered', }; return ( <React.Fragment> <div className="svg-centered-container"> {composite ? <CubesIcon {...props} /> : <CubeIcon {...props} />} {name} </div> </React.Fragment> ); }; ContentViewName.propTypes = { cvId: PropTypes.number.isRequired, name: PropTypes.string.isRequired, composite: PropTypes.bool, }; ContentViewName.defaultProps = { composite: false, }; export default ContentViewName;
Version data entries
15 entries across 15 versions & 1 rubygems