feat(workspace): integrate persisted canvas, element editing and session renewal
This commit is contained in:
@@ -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} />} />;
|
||||
}
|
||||
Reference in New Issue
Block a user