import React, { useEffect, useState, useMemo } from 'react'; interface ResearchSectionProps { onClose: () => void; } interface BlogPost { id: string; title: string; date: string; url: string; category: string; } export const ResearchSection: React.FC = ({ onClose }) => { const [isLoaded, setIsLoaded] = useState(false); const [role, setRole] = useState<'passenger' | 'rider'>('passenger'); // Blog State const [visibleCount, setVisibleCount] = useState(3); const [searchQuery, setSearchQuery] = useState(''); const blogs: BlogPost[] = [ { id: 'mcp', title: "The Incredible Journey of MCP: Unleashing AI’s True Potential", date: "April 12, 2025", url: "https://medium.com/@devarshia5/the-incredible-journey-of-mcp-unleashing-ais-true-potential-f386161c65e8", category: "Architecture" }, { id: 'plato', title: "When I Discovered That Plato Predicted AI: A Weekend Deep Dive", date: "July 20, 2025", url: "https://medium.com/@devarshia5/when-i-discovered-that-plato-predicted-ai-a-weekend-deep-dive-872e9421e280", category: "Philosophy" }, { id: 'time', title: "Time Is Universal : Burns Relentlessly", date: "July 05, 2025", url: "https://medium.com/@devarshia5/time-is-universal-burns-relentlessly-7f5ecfbc606f", category: "Entropy" }, { id: 'logistic', title: "Logistic Regression: The Magic of Predicting Yes or No", date: "March 26, 2025", url: "https://medium.com/@devarshia5/logistic-regression-the-magic-of-predicting-yes-or-no-f766703ee581", category: "Mathematics" } ]; useEffect(() => { const t = setTimeout(() => setIsLoaded(true), 100); return () => clearTimeout(t); }, []); const toggleRole = () => { setRole(prev => prev === 'passenger' ? 'rider' : 'passenger'); }; const filteredBlogs = useMemo(() => { return blogs.filter(b => b.title.toLowerCase().includes(searchQuery.toLowerCase())); }, [searchQuery]); const displayedBlogs = filteredBlogs.slice(0, visibleCount); return (
{/* Top Bar */}
R&D Division
{/* Main Content */}
{/* Header Title */}

Experimental
Protocols.

{/* FEATURED PROJECT: ANTARAM */}
{/* Background Decor */}
{/* Left Column: The Pitch */}
Live Beta

Antaram

The open-source answer to the last-mile problem. We removed the corporate middleman so you don't have to pay for their yacht.

Core Directive

"Why pay surge pricing when your neighbor is going the same way?"

Deploy on Network (www.antaram.org)
{/* Right Column: The Interactive Demo */}
{/* Simulation UI */}
{/* Toggle Switch */}
{/* Dynamic Card */}
{role === 'passenger' ? 'Status: Requesting' : 'Status: Online'}

{role === 'passenger' ? "Searching for nearby community drivers..." : "Scanning for passengers on your route..."}

{role === 'passenger' ? ( <>

✓ No algorithm surge fees

✓ Direct P2P Payment

) : ( <>

✓ Keep 100% of the fare

✓ Zero platform commission

)}

*Simulated Interface. Actual freedom may vary.

{/* SECONDARY RESEARCH GRID */}

Zero-Knowledge Identity

Proving you are human without revealing who you are. The end of the data-harvesting era.

Progress: 65%

Cognitive Noise Filtering

Audio models that strip environmental chaos from voice data in real-time, purely on-device.

Progress: 32%

Generative UI Streams

Interfaces that build themselves based on user intent and context, discarding static templates.

Progress: 89%
{/* LATEST BLOGS (FIELD NOTES) */}

Field Notes

Transmissions from the lab.

{/* Search Bar */}
setSearchQuery(e.target.value)} className="w-full bg-white/5 border border-white/10 text-white text-xs font-mono p-3 pl-8 focus:outline-none focus:border-cyan-500/50 transition-colors uppercase tracking-widest placeholder:text-white/20" /> 🔍
{/* Load More / Pagination */} {filteredBlogs.length > visibleCount && (
)} {filteredBlogs.length === 0 && (

No records found matching query sequence.

)}
{/* Footer Humor */}

"We break things so you don't have to."

); };