mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2026-01-30 17:20:00 +00:00
60 lines
1.3 KiB
JavaScript
60 lines
1.3 KiB
JavaScript
const SPORTS = {
|
|
"3x3-basketball": "🏀",
|
|
"archery": "🏹",
|
|
"artistic-gymnastics": "🤸",
|
|
"artistic-swimming": "🏊",
|
|
"athletics": "🏃",
|
|
"badminton": "🏸",
|
|
"basketball": "🏀",
|
|
"beach-volleyball": "🏐",
|
|
"boxing": "🥊",
|
|
"breaking": "🤸",
|
|
"canoe-slalom": "🛶",
|
|
"canoe-sprint": "🛶",
|
|
"cycling-bmx-freestyle": "🚴",
|
|
"cycling-bmx-racing": "🚴",
|
|
"cycling-mountain-bike": "🚴",
|
|
"cycling-road": "🚴",
|
|
"cycling-track": "🚴",
|
|
"diving": "🏊",
|
|
"equestrian": "🏇",
|
|
"fencing": "🤺",
|
|
"football": "⚽",
|
|
"golf": "⛳",
|
|
"handball": "🤾",
|
|
"hockey": "🏑",
|
|
"judo": "🥋",
|
|
"marathon-swimming": "🏊",
|
|
"modern-pentathlon": "🤺",
|
|
"rhythmic-gymnastics": "🤸",
|
|
"rowing": "🚣",
|
|
"rugby-sevens": "🏉",
|
|
"sailing": "⛵",
|
|
"shooting": "🔫",
|
|
"skateboarding": "🛹",
|
|
"sport-climbing": "🧗",
|
|
"surfing": "🏄",
|
|
"swimming": "🏊",
|
|
"table-tennis": "🏓",
|
|
"taekwondo": "🥋",
|
|
"tennis":"🎾",
|
|
"trampoline-gymnastics": "🤸",
|
|
"triathlon": "🏊",
|
|
"volleyball": "🏐",
|
|
"water-polo": "🤽",
|
|
"weightlifting": "🏋",
|
|
"wrestling": "🤼",
|
|
};
|
|
|
|
const getSportIcon = (sport) => {
|
|
if (SPORTS[sport]) {
|
|
return SPORTS[sport];
|
|
}
|
|
console.error(`No icon set for ${sport}`);
|
|
return "";
|
|
};
|
|
|
|
module.exports = {
|
|
getSportIcon,
|
|
};
|