UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

2 lines (1 loc) 428 B
import{__rest as e}from"tslib";import{jsx as r}from"react/jsx-runtime";import o,{useContext as t}from"react";const i=o.createContext({handleTooltipMouseEnter:()=>{},handleTooltipMouseLeave:()=>{},handleTooltipPointerMove:()=>{}}),n=o=>{var{children:t}=o,n=e(o,["children"]);return r(i.Provider,{value:n,children:t})},l=i.Consumer,a=()=>t(i);export{l as TooltipConsumer,i as TooltipContext,n as TooltipProvider,a as useTooltip};