```typescript import React, { useState, useRef, useEffect } from 'react'; import { Send, Settings, Sparkles, Loader2 } from 'lucide-react'; import { HeaderProps } from '../types'; const Header: React.FC = ({ prompt, setPrompt, onGenerate, loading, onSettingsClick }) => { const textareaRef = useRef(null); const [isExpanded, setIsExpanded] = useState(false); // Auto-resize textarea useEffect(() => { const textarea = textareaRef.current; if (textarea) { textarea.style.height = 'auto'; textarea.style.height = Math.min(textarea.scrollHeight, 120) + 'px'; } }, [prompt]); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); if (!loading && prompt.trim()) { onGenerate(); } }; const handleKeyDown = (e: React.KeyboardEvent) => { if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); handleSubmit(e); } }; const suggestedPrompts = [ "Create a modern landing page with hero section and features", "Build a portfolio website with dark theme", "Generate a responsive e-commerce product page", "Make a blog with modern typography", "Create a dashboard with charts and analytics" ]; return (
{/* Logo and Title */}

DeepSite

AI-Powered Website Builder

{/* Main Input */}