import Layout from '../components/layout/Layout'; import { mockMatches, mockRatings } from '../mocks/matches'; import { Calendar, MapPin, Star, MessageCircle } from 'lucide-react'; const HistoryPage = () => { return (

Collaboration history

Your previous matches and ratings

{/* Matches Section */}

Your matches

{mockMatches.map((match) => (
{match.user2_name}

{match.user2_name}

{match.event_name}
{new Date(match.created_at).toLocaleDateString('pl-PL')}
{match.status === 'completed' ? 'Completed' : 'Active'}
))}
{/* Ratings Section */}

Received ratings

{mockRatings.filter(r => r.rated_id === 1).map((rating) => (
{rating.rated_name}

{rating.rated_name}

{[...Array(5)].map((_, i) => ( ))}

{rating.comment}

{new Date(rating.created_at).toLocaleDateString('en-US')} {rating.would_collaborate_again && ( ✓ Would collaborate again )}
))}
{/* Stats Card */}

Your statistics

{mockMatches.length}
Collaborations
4.8
Average rating
100%
Would collaborate again
); }; export default HistoryPage;