mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-12 23:29:50 +00:00
fix(studio): destructure onShowPrompt prop in BlockCard
This commit is contained in:
@@ -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 (
|
||||||
|
|||||||
Reference in New Issue
Block a user