import React, { useEffect, useState } from 'react'; import "./styles/SkillsTab.css"; const SkillsTab = () => { const [category, setCategory] = useState('combat'); const categories = [ { id: 'combat', label: 'Combat' }, { id: 'science', label: 'Science' }, { id: 'crafting', label: 'Crafting' } ]; const [skillsData] = useState(() => { const catIds = categories.map(c => c.id); return Array.from({ length: 5 }, (_, i) => ({ id: `skill-${i}`, category: catIds[i % catIds.length], name: `Tech ${i + 1}`, currentLevel: i < 3 ? 1 : 0, maxLevel: 10, experience: 20, experienceToNext: 100, description: "Specialized module for advanced space operations.", iconClass: i % 3 === 0 ? "fa-shield-alt" : i % 3 === 1 ? "fa-flask" : "fa-tools", unlocked: i < 3, requiredLevel: 1 })); }); const handleUnlock = (category, id) => { console.log(`Unlocking ${id} in ${category}`); }; const handleUpgrade = (category, id) => { console.log(`Upgrading ${id} in ${category}`); }; const filteredSkills = skillsData.filter(skill => skill.category === category); return (
No skills discovered in this category yet.
)}