feat(studio): show Add button for components, Ask agent for all

Components (hyperframes:component) get both "Add" and "Ask agent"
buttons since they work as drop-in overlays. Blocks (scenes, data,
VFX, transitions) show only "Ask agent" since they need agent-guided
customization.
This commit is contained in:
Miguel Ángel
2026-05-21 19:31:14 -04:00
parent fb48b8d9b4
commit 8c698d7f2c
2 changed files with 60 additions and 22 deletions
@@ -84,6 +84,7 @@ export const LeftSidebar = memo(
onLint,
linting,
onToggleCollapse,
onAddBlock,
onPreviewBlock,
takeoverContent,
},
@@ -246,7 +247,7 @@ export const LeftSidebar = memo(
)}
{STUDIO_BLOCKS_PANEL_ENABLED && tab === "blocks" && (
<BlocksTab onPreviewBlock={onPreviewBlock} />
<BlocksTab onAddBlock={onAddBlock} onPreviewBlock={onPreviewBlock} />
)}
{/* Lint button pinned at the bottom */}