import { Icon } from '../../components'; const rank2icon = { // Command 'Colony Director': 'user-tie', 'Site Manager': 'user-tie', 'Overseer': 'user-tie', 'Head of Personnel': 'briefcase', 'Crew Resources Officer': 'briefcase', 'Deputy Director': 'briefcase', 'Command Secretary': 'user-tie', // Security 'Head of Security': 'user-shield', 'Security Commander': 'user-shield', 'Chief of Security': 'user-shield', 'Warden': ['city', 'shield-alt'], 'Detective': 'search', 'Forensic Technician': 'search', 'Security Officer': 'user-shield', 'Junior Officer': 'user-shield', // Engineering 'Chief Engineer': 'toolbox', 'Atmospheric Technician': 'wind', 'Station Engineer': 'toolbox', 'Maintenance Technician': 'wrench', 'Engine Technician': 'toolbox', 'Electrician': 'toolbox', // Medical 'Chief Medical Officer': 'user-md', 'Chemist': 'mortar-pestle', 'Pharmacist': 'mortar-pestle', 'Medical Doctor': 'user-md', 'Surgeon': 'user-md', 'Emergency Physician': 'user-md', 'Nurse': 'user-md', 'Virologist': 'disease', 'Paramedic': 'ambulance', 'Emergency Medical Technician': 'ambulance', 'Psychiatrist': 'couch', 'Psychologist': 'couch', // Science 'Research Director': 'user-graduate', 'Research Supervisor': 'user-graduate', 'Roboticist': 'robot', 'Biomechanical Engineer': ['wrench', 'heartbeat'], 'Mechatronic Engineer': 'wrench', 'Scientist': 'flask', 'Xenoarchaeologist': 'flask', 'Anomalist': 'flask', 'Phoron Researcher': 'flask', 'Circuit Designer': 'car-battery', 'Xenobiologist': 'meteor', 'Xenobotanist': ['biohazard', 'seedling'], // Cargo 'Quartermaster': 'box-open', 'Supply Chief': 'warehouse', 'Cargo Technician': 'box-open', 'Shaft Miner': 'hard-hat', 'Drill Technician': 'hard-hat', // Exploration 'Pathfinder': 'binoculars', 'Explorer': 'user-astronaut', 'Field Medic': ['user-md', 'user-astronaut'], 'Pilot': 'space-shuttle', // Civvies 'Bartender': 'glass-martini', 'Barista': 'coffee', 'Botanist': 'leaf', 'Gardener': 'leaf', 'Chaplain': 'place-of-worship', 'Counselor': 'couch', 'Chef': 'utensils', 'Cook': 'utensils', 'Entertainer': 'smile-beam', 'Performer': 'smile-beam', 'Musician': 'guitar', 'Stagehand': 'smile-beam', // All of the interns 'Intern': 'school', 'Apprentice Engineer': ['school', 'wrench'], 'Medical Intern': ['school', 'user-md'], 'Lab Assistant': ['school', 'flask'], 'Security Cadet': ['school', 'shield-alt'], 'Jr. Cargo Tech': ['school', 'box'], 'Jr. Explorer': ['school', 'user-astronaut'], 'Server': ['school', 'utensils'], // Back to civvies 'Internal Affairs Agent': 'balance-scale', 'Janitor': 'broom', 'Custodian': 'broom', 'Sanitation Technician': 'hand-sparkles', 'Maid': 'broom', 'Librarian': 'book', 'Journalist': 'newspaper', 'Writer': 'book', 'Historian': 'chalkboard-teacher', 'Professor': 'chalkboard-teacher', 'Visitor': 'user', // Special roles 'Emergency Responder': 'fighter-jet', }; export const RankIcon = (props, context) => { const { rank, color = 'label' } = props; let rankObj = rank2icon[rank]; if (typeof rankObj === 'string') { return ; } else if (Array.isArray(rankObj)) { return rankObj.map((icon) => ); } else { return ; } };