Notes ▾
{/* Backdrop to close menu when clicking outside */}
(menuOpen.get() ? "block" : "none")),
position: "fixed",
inset: "0",
zIndex: "999",
}}
/>
{/* Dropdown Menu */}
(menuOpen.get() ? "flex" : "none")),
position: "fixed",
top: "112px",
right: "16px",
background: "var(--ct-color-bg, white)",
border: "1px solid var(--ct-color-border, #e5e5e7)",
borderRadius: "12px",
boxShadow: "0 4px 12px rgba(0,0,0,0.15)",
minWidth: "160px",
zIndex: "1000",
padding: "4px",
}}
>
{"\u00A0\u00A0"}📝 New Note
{"\u00A0\u00A0"}📓 New Notebook
{"\u00A0\u00A0"}⚡ Quick Capture
{"\u00A0\u00A0"}📁 All Notes
Do List
{doList.compactUI}
{ifElse(
computed(() => recentPieces.get().length > 0),
Recent
{recentPieces.map((piece: any) => (
|
|
))}
,
undefined,
)}
Pieces
{visiblePieces.map((piece) => {
const isNotebook = computed(() => {
const name = piece?.[NAME];
const result = typeof name === "string" &&
name.startsWith("📓");
return result;
});
const link = (
);
return (
|
{ifElse(
isNotebook,
{link}
,
link,
)}
|
🗑️
|
);
})}
),
sidebarUI: undefined,
fabUI: fab[UI],
// Exported data
allPieces,
recentPieces,
// Exported handlers (bound to state cells for external callers)
addPiece: addPiece({ allPieces }),
trackRecent: trackRecent({ recentPieces }),
pinToChat: fab.pinToChat,
};
});