// ============================================================================ // agent verf - Verify Form Component // Version: 0.1.0 // Last Updated: 2026-01-13 // // URL input form for submitting content for verification. // ============================================================================ 'use client' import { useState } from 'react' interface VerifyFormProps { onSubmit: (url: string) => Promise isLoading: boolean error: string | null } export default function VerifyForm({ onSubmit, isLoading, error }: VerifyFormProps) { const [url, setUrl] = useState('') const handleSubmit = async (e: React.FormEvent) => { e.preventDefault() if (!url.trim()) return await onSubmit(url.trim()) } // Validate URL format const isValidUrl = (str: string) => { try { new URL(str) return true } catch { return false } } const canSubmit = url.trim() && isValidUrl(url) && !isLoading return (
{/* URL Input */}
setUrl(e.target.value)} placeholder="https://twitter.com/... or any URL" className="input" disabled={isLoading} autoFocus /> {url && !isValidUrl(url) && (

Please enter a valid URL

)}
{/* Error Message */} {error && (
{error}
)} {/* Submit Button */} {/* Help Text */}

Supports Twitter/X, TikTok, YouTube, Instagram, and news articles

) }