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"}📁 All Notes
{visibleCharms.map((charm) => {
// Check if charm is a notebook by NAME prefix (isNotebook prop not reliable through proxy)
const isNotebook = lift((args: { c: unknown }) => {
const name = (args.c as any)?.[NAME];
const result = typeof name === "string" &&
name.startsWith("📓");
return result;
})({ c: charm });
const dragHandle = (
⠿
);
const link = (
);
return (
|
{dragHandle}
|
{ifElse(
isNotebook,
{link}
,
link,
)}
|
🗑️
|
);
})}
),
sidebarUI: undefined,
fabUI: fab[UI],
};
});