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