import React from 'react'; import PropTypes from 'prop-types'; const JSONArrow = ({ styling, arrowStyle, expanded, nodeType, onClick }) => (
{'\u25B6'} {arrowStyle === 'double' && (
{'\u25B6'}
)}
); JSONArrow.propTypes = { styling: PropTypes.func.isRequired, arrowStyle: PropTypes.oneOf(['single', 'double']), expanded: PropTypes.bool.isRequired, nodeType: PropTypes.string.isRequired, onClick: PropTypes.func.isRequired }; JSONArrow.defaultProps = { arrowStyle: 'single' }; export default JSONArrow;