mirror of
https://github.com/jacobtread/obsidian-timekeep.git
synced 2026-07-22 10:10:27 +00:00
8 lines
202 B
TypeScript
8 lines
202 B
TypeScript
import { App } from "obsidian";
|
|
import React, { useContext } from "react";
|
|
|
|
export const AppContext = React.createContext<App>(null!);
|
|
|
|
export function useApp(): App {
|
|
return useContext(AppContext);
|
|
}
|