Skip to content

Commit

Permalink
✨ feat: 이세돌 아이콘을 가져오는 함수 추가
Browse files Browse the repository at this point in the history
- artist value에 따라 자동으로 아이콘을 가져오는 함수 생성
- 이세돌 우선 작업
- 나머지 아티스트 후추
  • Loading branch information
SayangHoney committed Jan 15, 2025
1 parent d9cddf9 commit 860e5e3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/components/common/ArtistsIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import IneIcon from '@/assets/artists/isd/ine.png';
import JingBurgerIcon from '@/assets/artists/isd/jingburger.png';
import LilpaIcon from '@/assets/artists/isd/lilpa.png';
import JururuIcon from '@/assets/artists/isd/jururu.png';
import GoseguIcon from '@/assets/artists/isd/gosegu.png';
import ViichanIcon from '@/assets/artists/isd/viichan.png';

export function artistsIcon(value: string) {
switch (value) {
case 'ine':
return { icon: IneIcon.src };
case 'jingburger':
return { icon: JingBurgerIcon.src };
case 'lilpa':
return { icon: LilpaIcon.src };
case 'jururu':
return { icon: JururuIcon.src };
case 'gosegu':
return { icon: GoseguIcon.src };
case 'viichan':
return { icon: ViichanIcon.src };
default:
return { icon: '' };
}
}

0 comments on commit 860e5e3

Please sign in to comment.