import { Link } from 'react-router-dom' import { useQuery } from '@tanstack/react-query' import { api } from '../../../api/client' import { DIFFICULTIES, formatMeso, getDifficultyImageUrl } from './constants' export default function BossList() { const { data: bosses = [], isLoading } = useQuery({ queryKey: ['admin', 'boss-crystal', 'bosses'], queryFn: () => api('/api/admin/boss-crystal/bosses').catch(() => []), }) return (

보스 결정 관리

보스 정보 및 난이도별 결정 가격을 관리합니다

+ 보스 추가
{isLoading ? (
{Array.from({ length: 4 }).map((_, i) => (
))}
) : bosses.length === 0 ? (
⚔️

등록된 보스가 없습니다

첫 보스 추가하기 →
) : (
{bosses.map((boss) => (
{boss.name}

{boss.name}

{DIFFICULTIES.filter((d) => boss.difficulties?.some((bd) => bd.difficulty === d.key)).map((d) => { const bd = boss.difficulties.find((x) => x.difficulty === d.key) return ( {d.label} ) })}
))}
)}
) }