mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 10:35:11 +00:00
This lets the dexie-react-hooks library do more of the work for us instead of having to make redux-sagas wrappers for everything.
10 lines
266 B
TypeScript
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);
|