fix(studio): destructure onShowPrompt prop in BlockCard

This commit is contained in:
Miguel Ángel
2026-05-21 20:29:04 -04:00
parent d2da3bf6db
commit 300ef395ea
@@ -290,6 +290,7 @@ function BlockCard({
posterUrl, posterUrl,
videoUrl, videoUrl,
onAdd, onAdd,
onShowPrompt,
onPreview, onPreview,
}: { }: {
name: string; name: string;
@@ -366,7 +367,7 @@ function BlockCard({
const prompt = buildAgentPrompt(title, name, description, category, blockType, context); const prompt = buildAgentPrompt(title, name, description, category, blockType, context);
onShowPrompt?.({ title, prompt }); onShowPrompt?.({ title, prompt });
}, },
[title, name, description, category, blockType, activeCompPath, compositionDimensions], [title, name, description, category, blockType, activeCompPath, compositionDimensions, onShowPrompt],
); );
return ( return (