UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

2 lines (1 loc) 348 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({data:[],activeItem:null}),a=e=>{var{children:i}=e,a=r(e,["children"]);return t(o.Provider,{value:a,children:i})},c=()=>i(o);export{o as ImageFullScreenContext,a as ImageFullScreenProvider,c as useImageFullScreen};