- {consoleMessages.length === 0 ? (
-
- No console messages
-
- ) : (
- consoleMessages.map((msg) => (
-
-
-
{getLevelIcon(msg.level)} {msg.message}
-
-
-
- ))
+ return (
+
+
+
+
+
+
+ Console Output ({consoleMessages.length})
+
-
-
-
- );
-};
+
+
+ {consoleMessages.length === 0 ? (
+
+ No console messages
+
+ ) : (
+ consoleMessages.map((msg) => (
+
+
+
{getLevelIcon(msg.level)} {msg.message}
+
+
+
+ ))
+ )}
+
+
+
+
+ );
+ };
+
+ const Menu = () => {
+ return (
+
+
+
+
+
+
+ {isBuildLoading ? (
+
+ ) : (
+
+ )}
+ {isBuildLoading ? 'Building...' : 'Build'}
+
+
+
+ );
+ };
return (
@@ -509,7 +550,12 @@ export function PreviewPane({ projectId, activeTab }: PreviewPaneProps) {
onForward={goForward}
canGoBack={historyIndex > 0}
canGoForward={historyIndex < navigationHistory.length - 1}
- extraContent={
}
+ extraContent={(
+
+
+
+
+ )}
/>
)}
diff --git a/src/pages/ProjectView.tsx b/src/pages/ProjectView.tsx
index 439bf9a1..d2c709d8 100644
--- a/src/pages/ProjectView.tsx
+++ b/src/pages/ProjectView.tsx
@@ -202,7 +202,6 @@ export function ProjectView() {
projectId={project.id}
projectName={project.name}
onNewChat={handleNewChat}
- onBuild={runBuild}
onDeploy={runDeploy}
isLoading={isAILoading}
isBuildLoading={build.isPending}
@@ -409,7 +408,6 @@ export function ProjectView() {
projectId={project.id}
projectName={project.name}
onNewChat={handleNewChat}
- onBuild={runBuild}
onDeploy={runDeploy}
isLoading={isAILoading}
isBuildLoading={build.isPending}