Files
pybricks-code/src/fileStorage/context.ts
T
David Lechner a005992a21 fileStorage: use dexie-react-hooks
This lets the dexie-react-hooks library do more of the work for us
instead of having to make redux-sagas wrappers for everything.
2022-05-18 17:06:08 -05:00

10 lines
266 B
TypeScript

// SPDX-License-Identifier: MIT
// Copyright (c) 2022 The Pybricks Authors
import { createContext } from 'react';
import { FileStorageDb } from '.';
export const db = new FileStorageDb('pybricks.fileStorage');
export const FileStorageContext = createContext(db);