feat: connected field in context

This commit is contained in:
2025-05-24 14:23:56 +02:00
parent 68e2ece877
commit b5f5346536

View File

@ -3,11 +3,13 @@ import { createContext, useContext } from "react";
interface DbContextValues {
db: IDBPDatabase | null;
connected: boolean;
setDb: (db: IDBPDatabase) => void;
}
export const DbContext = createContext<DbContextValues>({
db: null,
connected: false,
setDb: () => {},
});