feat(workspace): integrate persisted canvas, element editing and session renewal

This commit is contained in:
2026-11-06 12:50:43 +08:00
parent 45e78f2e43
commit 373582906d
36 changed files with 1028 additions and 193 deletions
+9
View File
@@ -0,0 +1,9 @@
"use client";
import { DynamicIcon } from "lucide-react/dynamic";
import { Star, type LucideProps } from "lucide-react";
import { iconsById } from "./icon-catalog";
export function CanvasIcon({ name, ...props }: LucideProps & { name?: string }) {
const icon = iconsById.get(name || "Star");
if (!icon) return <Star {...props} />;
return <DynamicIcon name={icon.slug} {...props} fallback={() => <Star {...props} />} />;
}