2026-02-16 15:54:07 -05:00
|
|
|
---
|
|
|
|
|
import common from "/src/svg/rarity/common.svg?raw";
|
|
|
|
|
import uncommon from "/src/svg/rarity/uncommon.svg?raw";
|
|
|
|
|
import rare from "/src/svg/rarity/rare.svg?raw";
|
|
|
|
|
import rareHolo from "/src/svg/rarity/rare_holo.svg?raw";
|
|
|
|
|
import amazingRare from "/src/svg/rarity/amazing_rare.svg?raw";
|
|
|
|
|
import illustrationRare from "/src/svg/rarity/illustration_rare.svg?raw";
|
|
|
|
|
import megaAttackRare from "/src/svg/rarity/mega_attack_rare.svg?raw";
|
|
|
|
|
import megaHyperRare from "/src/svg/rarity/mega_hyper_rare.svg?raw";
|
|
|
|
|
import doubleRare from "/src/svg/rarity/double_rare.svg?raw";
|
|
|
|
|
import promo from "/src/svg/rarity/promo.svg?raw";
|
|
|
|
|
import specialIllusRare from "/src/svg/rarity/special_illustration_rare.svg?raw";
|
|
|
|
|
import ultrarare from "/src/svg/rarity/rare_ultra.svg?raw";
|
2026-02-17 11:46:33 -05:00
|
|
|
import secretrare from "/src/svg/rarity/rare_secret.svg?raw";
|
|
|
|
|
import blackwhiterare from "/src/svg/rarity/black_white_rare.svg?raw";
|
|
|
|
|
import raresecret from "/src/svg/rarity/rare_secret.svg?raw";
|
2026-02-16 15:54:07 -05:00
|
|
|
|
|
|
|
|
const { rarity } = Astro.props;
|
|
|
|
|
|
|
|
|
|
const rarityMap = {
|
|
|
|
|
"Common": common,
|
|
|
|
|
"Uncommon": uncommon,
|
|
|
|
|
"Rare": rare,
|
|
|
|
|
"Holo Rare": rareHolo,
|
|
|
|
|
"Amazing Rare": amazingRare,
|
|
|
|
|
"Illustration Rare": illustrationRare,
|
|
|
|
|
"Mega Attack Rare": megaAttackRare,
|
|
|
|
|
"Mega Hyper Rare": megaHyperRare,
|
|
|
|
|
"Double Rare": doubleRare,
|
|
|
|
|
"Promo": promo,
|
|
|
|
|
"Special Illustration Rare": specialIllusRare,
|
2026-02-17 07:44:41 -05:00
|
|
|
"Ultra Rare": ultrarare,
|
2026-02-17 11:46:33 -05:00
|
|
|
"Secret Rare": secretrare,
|
|
|
|
|
"Black White Rare": blackwhiterare,
|
|
|
|
|
"Shiny Holo Rare": raresecret,
|
2026-02-16 15:54:07 -05:00
|
|
|
};
|
|
|
|
|
|
2026-02-17 07:44:41 -05:00
|
|
|
const svg = rarityMap[rarity as keyof typeof rarityMap] ?? "";
|
2026-02-16 15:54:07 -05:00
|
|
|
---
|
|
|
|
|
|
2026-02-17 07:44:41 -05:00
|
|
|
<div class="rarity-icon" set:html={svg}></div>
|