forked from extern/bruno
18 lines
329 B
JavaScript
18 lines
329 B
JavaScript
import React from 'react';
|
|
import useIdb from './useIdb';
|
|
|
|
export const AppContext = React.createContext();
|
|
|
|
export const AppProvider = props => {
|
|
// boot idb
|
|
useIdb();
|
|
|
|
return (
|
|
<AppContext.Provider {...props} value='appProvider'>
|
|
{props.children}
|
|
</AppContext.Provider>
|
|
);
|
|
};
|
|
|
|
export default AppProvider;
|