bigbluebutton-tablet/react-native/app/contexts/portals/container.tsx
2022-02-24 16:08:12 -03:00

19 lines
471 B
TypeScript

import React from 'react'
import { PortalContext } from './context'
type IPortalContext = {
portals?: any
setPortals?: any
}
export const PortalContextContainer = ({children}: any)=>{
const [portals, setPortals] = React.useState(0)
const portalHook: IPortalContext = {portals, setPortals}
return (
<>
<PortalContext.Provider value={portalHook}>
{children}
</PortalContext.Provider>
</>
)
}