@roderickhsiao/react-i13n
Version:
[Experiment] React I13n provides a performant and scalable solution to application instrumentation.
28 lines (26 loc) • 628 B
JavaScript
/**
* Copyright 2015 - Present, Yahoo Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import PropTypes from 'prop-types';
var TriggerNode = props => {
var {
onClick
} = props;
var style = {
background: '#673ab7',
color: 'rgba(255,255,255,.87)',
cursor: 'pointer',
fontFamily: 'inherit',
padding: '0 4px'
};
return /*#__PURE__*/React.createElement("span", {
style: style,
onClick: onClick
}, "\u2304");
};
TriggerNode.propTypes = {
onClick: PropTypes.func.isRequired
};
export default TriggerNode;