import PropTypes from 'prop-types'; import React from 'react'; import { tooltipPositions } from 'Helpers/Props'; import Tooltip from './Tooltip'; import styles from './Popover.css'; function Popover(props) { const { title, body, ...otherProps } = props; return (
{title}
{body}
} /> ); } Popover.propTypes = { className: PropTypes.string, bodyClassName: PropTypes.string, anchor: PropTypes.node.isRequired, title: PropTypes.string.isRequired, body: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).isRequired, position: PropTypes.oneOf(tooltipPositions.all), canFlip: PropTypes.bool }; export default Popover;