Files
Trilium/apps/client/src/widgets/NoteTitleDetails.tsx
2025-12-12 20:21:55 +02:00

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>
);
}