import * as React from 'react' ; import * as PropTypes from 'prop-types' ; import { PopoverHideProps as ReakitPopoverHideProps } from 'reakit/ts' ; import { PopoverHide as _PopoverHide } from './styled' ; export type LocalPopoverHideProps = { children : React . ReactNode ; hide ( ) : void ; onClick ? ( ) : void ; } ; export type PopoverHideProps = ReakitPopoverHideProps & LocalPopoverHideProps ; export const PopoverHide = React . forwardRef ( ( { children , ... props } , ref ) => ( < _PopoverHide { ... props } ref = { ref } > { children } < /_PopoverHide>)); export const popoverHidePropTypes = { children : PropTypes . node . isRequired , hide : PropTypes . func . isRequired , onClick : PropTypes . func } ; PopoverHide . propTypes = popoverHidePropTypes ; export const popoverHideDefaultProps = { onClick : undefined } ; PopoverHide . defaultProps = popoverHideDefaultProps ; const C = PopoverHide ; export default C ;