import React, { useState } from 'react'; import axios from 'axios'; import { motion, AnimatePresence } from 'framer-motion'; import { Zap, Layout, Terminal, Github, Compass } from 'lucide-react'; import ResearchForm from './components/ResearchForm'; import ResearchResult from './components/ResearchResult'; function App() { const [results, setResults] = useState(null); const [isLoading, setIsLoading] = useState(false); const [error, setError] = useState(null); const handleSearch = async (formData) => { setIsLoading(true); setError(null); try { const response = await axios.post('/api/research', formData); setResults(response.data); } catch (err) { console.error(err); setError('Failed to generate insights. Please check if the backend is running.'); } finally { setIsLoading(false); } }; return (
{/* Background Decor */}
{/* Header */}

AMALFA CREATIVE

{/* Main Content */}
{/* Left Column - Form */} {/* Right Column - Results */}

Strategic Roadmap

{results && ( )}
); } export default App;