Files
Trilium/apps/client/src/widgets/NoteTitleDetails.tsx

15 lines
539 B
TypeScript
Raw Normal View History

2025-12-11 18:53:48 +02:00
import CollectionProperties from "./note_bars/CollectionProperties";
import { useNoteContext, useNoteProperty } from "./react/hooks";
export default function NoteTitleDetails() {
2025-12-11 18:53:48 +02:00
const { note } = useNoteContext();
const isHiddenNote = note && note.noteId !== "_search" && note.noteId.startsWith("_");
2025-12-11 18:53:48 +02:00
const noteType = useNoteProperty(note, "type");
2025-12-11 18:53:48 +02:00
return (
<div className="title-details">
{note && !isHiddenNote && noteType === "book" && <CollectionProperties note={note} />}
</div>
);
}