0 ? "1.5rem" : "0" }}
- >
-
-
- {folder.notes.map((note) => (
-
- ))}
-
- {folder.children.map((child) => renderFolder(child, depth + 1))}
-
- );
-
const handleDragEnd = async (event: DragEndEvent) => {
const { active, over } = event;
if (!over) return;
@@ -247,7 +225,17 @@ function Home() {
{/* Folder tree */}
- {folderTree?.folders.map((folder) => renderFolder(folder))}
+ {folderTree?.folders.map((folder) => (
+
+ ))}
{/* Orphaned notes */}
@@ -291,9 +279,20 @@ function Home() {
markdown={content}
key={selectedNote?.id || "new"}
onChange={setContent}
- className="prose prose-invert max-w-none text-ctp-text h-full"
+ className="prose prose-invert max-w-none text-ctp-text h-full dark-editor dark-mode"
plugins={[
headingsPlugin(),
+ toolbarPlugin({
+ toolbarClassName: "toolbar",
+ toolbarContents: () => (
+ <>
+