These arbitrary props will allow to handle native React element events among other things. Refs #9094
28 lines
606 B
JavaScript
28 lines
606 B
JavaScript
/**
|
|
* @prettier
|
|
*/
|
|
import React from "react"
|
|
import PropTypes from "prop-types"
|
|
import omit from "lodash/omit"
|
|
|
|
class UnlockAuthIcon extends React.Component {
|
|
mapStateToProps(state, props) {
|
|
const ownProps = omit(props, Object.keys(props.getSystem()))
|
|
return { state, ownProps }
|
|
}
|
|
|
|
render() {
|
|
const { getComponent, ownProps } = this.props
|
|
const UnlockIcon = getComponent("UnlockIcon")
|
|
|
|
return <UnlockIcon {...ownProps} />
|
|
}
|
|
}
|
|
|
|
UnlockAuthIcon.propTypes = {
|
|
getComponent: PropTypes.func.isRequired,
|
|
ownProps: PropTypes.shape({}).isRequired,
|
|
}
|
|
|
|
export default UnlockAuthIcon
|