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