Sha256: e76db9c368ce64fc6fcb31a2b9d4f5eba692d4eaf19da0613986dce8593bbf67
Contents?: true
Size: 698 Bytes
Versions: 190
Compression:
Stored size: 698 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { noop } from 'foremanReact/common/helpers'; import { Icon } from 'patternfly-react'; const CollapseSubscriptionGroupButton = ({ collapsed, onClick, ...props }) => { const iconName = collapsed ? 'angle-right' : 'angle-down'; return ( <Icon className="collapse-subscription-group-button" name={iconName} onClick={onClick} {...props} /> ); }; CollapseSubscriptionGroupButton.propTypes = { collapsed: PropTypes.bool, onClick: PropTypes.func, }; CollapseSubscriptionGroupButton.defaultProps = { collapsed: false, onClick: noop, }; export default CollapseSubscriptionGroupButton;
Version data entries
190 entries across 190 versions & 1 rubygems