"use client"; import { useState } from "react"; import { useAnalyze } from "@/hooks/use-analyze"; import { UploadZone } from "@/components/analyze/upload-zone"; import { AnalyzeForm } from "@/components/analyze/analyze-form"; import { LoadingState } from "@/components/analyze/loading-state"; import { AnalysisResult } from "@/components/analyze/analysis-result"; import { Button } from "@/components/ui/button"; import { Navbar } from "@/components/landing/navbar"; import { Footer } from "@/components/landing/footer"; import { AlertCircle, ArrowRight } from "lucide-react"; export default function AnalyzePage() { const { form, selectedFile, handleFileSelect, handleFileRemove, onSubmit, result, error, isLoading, resetAnalysis, } = useAnalyze(); const [isDragging, setIsDragging] = useState(false); if (result) { return ( <>