import { useTooltipState as useReakitTooltipState , TooltipStateReturn as ReakitTooltipStateReturn , TooltipInitialState as ReakitTooltipInitialState , } from 'reakit' ; export type TooltipStateReturn = ReakitTooltipStateReturn ; export type TooltipInitialState = ReakitTooltipInitialState ; export function useTooltipState ( initialState ? ) { return useReakitTooltipState ( initialState ) ; } export function TooltipState ( props ) { const { children , ... restProps } = props ; const state = useTooltipState ( restProps ) ; return props . children ( state ) ; }