old-remnantchat/src/contexts/StorageContext.ts

11 lines
272 B
TypeScript
Raw Normal View History

import { createContext } from 'react'
import localforage from 'localforage'
interface StorageContextProps {
getPersistedStorage: () => typeof localforage
}
export const StorageContext = createContext<StorageContextProps>({
getPersistedStorage: () => localforage,
})