mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-08 22:48:14 -05:00
Added code placeholder
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user