Added code placeholder

This commit is contained in:
Emir Karabeg
2025-02-05 14:12:43 -08:00
parent 4df1c8268c
commit 429a98e96b
2 changed files with 5 additions and 18 deletions

View File

@@ -192,6 +192,11 @@ export function Code({ blockId, subBlockId, isConnecting }: CodeProps) {
</div>
<div ref={editorRef} className="pl-[30px] pt-0 mt-0 relative">
{code.length === 0 && (
<div className="absolute left-[42px] top-[12px] text-muted-foreground/50 select-none pointer-events-none">
Write JavaScript...
</div>
)}
<Editor
value={code}
onValueChange={(newCode) => {

View File

@@ -28,24 +28,6 @@ interface StoredTool {
params: Record<string, string>
}
// UI interface - includes display properties
interface ToolDisplay {
type: string
icon: any
title: string
bgColor: string
requiredParams: ToolParam[]
}
interface SelectedTool {
type: string
icon: any
title: string
bgColor: string
requiredParams?: ToolParam[]
params?: Record<string, string>
}
interface ToolParam {
id: string
type: string