import type { BanlistInfo , Card } from "@yugioh-deck-tool/core" ; import { CardTypeCategory } from "@yugioh-deck-tool/core" ; export const imageUrlType = ( card ) : string => `https://ygoprodeck.com/pics/icons/${ encodeURIComponent ( card . type . name ) }.jpg` ; export const imageUrlSubType = ( card ) : string => card . type . category === CardTypeCategory . MONSTER ? `https://ygoprodeck.com/pics/${ encodeURIComponent ( card . subType ) }.png` : `https://ygoprodeck.com/pics/icons/${ encodeURIComponent ( card . subType ) }.png` ; export const imageUrlAttribute = ( card ) : string => `https://ygoprodeck.com/pics/${ encodeURIComponent ( card . attribute ! ) }.jpg` ; export const imageUrlAtk = ( ) : string => "https://ygoprodeck.com/wp-content/uploads/2017/01/atk.png" ; export const imageUrlLevel = ( ) : string => "https://ygoprodeck.com/wp-content/uploads/2017/01/level.png" ; export const imageUrlLinkMarker = ( ) : string => "https://ygoprodeck.com/wp-content/uploads/2019/04/link-arrow-right.png" ; export const imageUrlBanState = ( card , format ) : string => `https://ygoprodeck.com/pics/icons/${ encodeURIComponent ( card . banlist [ format ] . name ) }.png` ; export const imageUrlCardPlaceholder = ( ) : string => "https://ygoprodeck.com/pics/4035199.jpg" ;