databag/app/mobile/src/context/ChannelContext.js
2022-09-15 01:03:20 -07:00

15 lines
381 B
JavaScript

import { createContext } from 'react';
import { useChannelContext } from './useChannelContext.hook';
export const ChannelContext = createContext({});
export function ChannelContextProvider({ children }) {
const { state, actions } = useChannelContext();
return (
<ChannelContext.Provider value={{ state, actions }}>
{children}
</ChannelContext.Provider>
);
}