UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

2 lines (1 loc) 393 B
import{__rest as r}from"tslib";import{jsx as t}from"react/jsx-runtime";import e,{useContext as i}from"react";const o=e.createContext({scrollbarSize:6,setScroll:()=>{},disabled:!1,isLeft:!1,isRight:!1,isTop:!1,isBottom:!1}),l=e=>{var{children:i}=e,l=r(e,["children"]);return t(o.Provider,{value:l,children:i})},s=()=>i(o);export{o as ScrollbarContext,l as ScrollbarProvider,s as useScrollbar};