mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
feat(react): basic handling of note context aware
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import { useNoteContext } from "./react/hooks";
|
||||
|
||||
export default function NoteTitleWidget() {
|
||||
const { ntxId, noteId, note } = useNoteContext();
|
||||
|
||||
return (
|
||||
<>
|
||||
<p>Hi</p>
|
||||
<p>{ ntxId }{ noteId }</p>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user