mirror of
https://github.com/zadam/trilium.git
synced 2025-12-15 12:49:53 +01:00
15 lines
539 B
TypeScript
15 lines
539 B
TypeScript
import CollectionProperties from "./note_bars/CollectionProperties";
|
|
import { useNoteContext, useNoteProperty } from "./react/hooks";
|
|
|
|
export default function NoteTitleDetails() {
|
|
const { note } = useNoteContext();
|
|
const isHiddenNote = note && note.noteId !== "_search" && note.noteId.startsWith("_");
|
|
const noteType = useNoteProperty(note, "type");
|
|
|
|
return (
|
|
<div className="title-details">
|
|
{note && !isHiddenNote && noteType === "book" && <CollectionProperties note={note} />}
|
|
</div>
|
|
);
|
|
}
|