'use client'; import React, { useState } from 'react'; const SORT_OPTIONS = ['Relevance', 'Newest First', 'Most Active', 'Alphabetical']; const RESULTS = [ { type: 'Project', badgeClass: 'pub-badge-open', badgeIcon: 'fa-flask', badgeLabel: 'Active Project', statusClass: 'pub-badge-peer', statusLabel: 'Environmental Studies', title: 'Urban Microclimate Modeling', lead: 'Dr. Alan Turing', updated: 'Updated 2 days ago', center: 'Institute for Climate Research', desc: 'Developing high-resolution predictive models for heat island effects in European metropolitan areas using machine learning and satellite data.', tags: ['Climate', 'Machine Learning', 'Urban Studies'], progress: 65, }, { type: 'Lab', badgeClass: 'pub-badge-institutional', badgeIcon: 'fa-building-user', badgeLabel: 'Research Lab', statusClass: 'pub-badge-peer', statusLabel: 'Cognitive Science', title: 'Cognitive Sciences Lab', lead: 'Prof. Marie Curie', updated: 'Updated 1 week ago', center: 'Center for Digital Humanities', desc: 'Exploring the intersection of artificial intelligence and human psychology, with a focus on decision-making processes and behavioral modeling.', tags: ['AI', 'Psychology', 'Neuroscience'], progress: null, }, { type: 'Project', badgeClass: 'pub-badge-request', badgeIcon: 'fa-gavel', badgeLabel: 'Data Collection', statusClass: 'pub-badge-peer', statusLabel: 'Law & Policy', title: 'Digital Rights in the EU Framework', lead: 'Dr. Elena Rostova', updated: 'Updated 1 week ago', center: 'Institute for Advanced European Studies', desc: 'A comparative analysis of member state implementation of digital privacy directives and their impact on civil liberties across the EU.', tags: ['Digital Rights', 'EU Law', 'Privacy'], progress: 30, }, ]; const ResearchSearchResults = () => { const [isSortOpen, setIsSortOpen] = useState(false); const [selectedSort, setSelectedSort] = useState('Relevance'); return (
{/* Toolbar */}

Showing 1–10 of 340 results

{isSortOpen && (
{SORT_OPTIONS.map((opt) => (
{ setSelectedSort(opt); setIsSortOpen(false); }} > {opt}
))}
)}
{/* Result cards */}
{RESULTS.map((item, idx) => (

{item.title}

{item.badgeLabel} {item.statusLabel}
{item.lead}
{item.updated}
{item.center}

{item.desc}

Tags: {item.tags.map((tag) => ( {tag} ))}
{item.progress !== null && (
Progress {item.progress}%
)}
))}
{/* Pagination */}
...
); }; export default ResearchSearchResults;