diff --git a/frontend/src/components/script-builder/ScriptBuilderInput.tsx b/frontend/src/components/script-builder/ScriptBuilderInput.tsx index 47bb10ab..f4a7a527 100644 --- a/frontend/src/components/script-builder/ScriptBuilderInput.tsx +++ b/frontend/src/components/script-builder/ScriptBuilderInput.tsx @@ -1,17 +1,27 @@ import { useState, useRef, useCallback, useEffect } from 'react' -import { Send } from 'lucide-react' +import { Send, Terminal, UserPlus, HardDrive, RotateCcw } from 'lucide-react' +import type { LucideIcon } from 'lucide-react' import { cn } from '@/lib/utils' +const SUGGESTIONS: { icon: LucideIcon; label: string }[] = [ + { icon: UserPlus, label: 'Create a new AD user' }, + { icon: HardDrive, label: 'Check disk space on all servers' }, + { icon: RotateCcw, label: 'Restart a Windows service' }, + { icon: Terminal, label: 'Reset MFA for a user' }, +] + interface ScriptBuilderInputProps { onSend: (content: string) => void disabled: boolean placeholder?: string + showSuggestions?: boolean } export function ScriptBuilderInput({ onSend, disabled, placeholder = 'Describe the script you need...', + showSuggestions = false, }: ScriptBuilderInputProps) { const [value, setValue] = useState('') const textareaRef = useRef(null) @@ -44,35 +54,53 @@ export function ScriptBuilderInput({ const canSend = value.trim().length > 0 && !disabled return ( -
-