봇 목록
{loading ? (
) : bots.length === 0 ? (
등록된 봇이 없습니다
위의 버튼을 클릭하여 봇을 추가하세요
) : (
{bots.map((bot, index) => {
const statusInfo = getStatusInfo(bot.status);
return (
isInitialLoad && index === bots.length - 1 && setIsInitialLoad(false)
}
className="relative bg-gradient-to-br from-gray-50 to-white rounded-xl border border-gray-200 overflow-hidden hover:shadow-md transition-all"
>
{/* 상단 헤더 */}
{bot.type === 'x' ? (
) : bot.type === 'meilisearch' ? (
) : (
)}
{bot.name}
{bot.last_check_at
? `${formatTime(bot.last_check_at)}에 업데이트됨`
: '아직 업데이트 없음'}
{statusInfo.text}
{/* 통계 정보 */}
{bot.type === 'meilisearch' ? (
<>
{bot.schedules_added || 0}
동기화 수
{bot.last_added_count
? `${(bot.last_added_count / 1000 || 0).toFixed(1)}초`
: '-'}
소요 시간
>
) : (
<>
{bot.schedules_added}
총 추가
0 ? 'text-green-500' : 'text-gray-400'}`}
>
+{bot.last_added_count || 0}
마지막
>
)}
{formatInterval(bot.check_interval)}
업데이트 간격
{/* 오류 메시지 */}
{bot.status === 'error' && bot.error_message && (
{bot.error_message}
)}
{/* 액션 버튼 */}
);
})}
)}