mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 23:00:03 +00:00
fix(studio): destructure onShowPrompt prop in BlockCard
This commit is contained in:
@@ -290,6 +290,7 @@ function BlockCard({
|
||||
posterUrl,
|
||||
videoUrl,
|
||||
onAdd,
|
||||
onShowPrompt,
|
||||
onPreview,
|
||||
}: {
|
||||
name: string;
|
||||
@@ -366,7 +367,7 @@ function BlockCard({
|
||||
const prompt = buildAgentPrompt(title, name, description, category, blockType, context);
|
||||
onShowPrompt?.({ title, prompt });
|
||||
},
|
||||
[title, name, description, category, blockType, activeCompPath, compositionDimensions],
|
||||
[title, name, description, category, blockType, activeCompPath, compositionDimensions, onShowPrompt],
|
||||
);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user