import React from 'react'; export default function ProjectCard({ project, onSelect }) { const { title, description, category, status, tech_stack, github_url, demo_url, image_url } = project; // Format status class name const getStatusClass = (statusStr) => { if (!statusStr) return ''; const s = statusStr.toLowerCase(); if (s.includes('active') || s.includes('phát triển')) return 'active-development'; return 'completed'; }; // Split tech stack string into array const techTags = tech_stack ? tech_stack.split(',').map(tag => tag.trim()) : []; return (