diff --git a/frontend/src/components/pc/admin/bot/BotCard.jsx b/frontend/src/components/pc/admin/bot/BotCard.jsx index f7ad509..e5f62fe 100644 --- a/frontend/src/components/pc/admin/bot/BotCard.jsx +++ b/frontend/src/components/pc/admin/bot/BotCard.jsx @@ -3,7 +3,8 @@ */ import { memo } from 'react'; import { motion } from 'framer-motion'; -import { Play, Square, RefreshCw, RotateCcw, Pencil } from 'lucide-react'; +import { Play, Square, RefreshCw, RotateCcw, Pencil, Trash2 } from 'lucide-react'; +import { Tooltip } from '@/components/common'; // X 아이콘 컴포넌트 export const XIcon = ({ size = 20, fill = 'currentColor' }) => ( @@ -206,6 +207,7 @@ export const BotTableRow = memo(function BotTableRow({ onSync, onToggle, onEdit, + onDelete, onAnimationComplete, formatTime, formatInterval, @@ -241,38 +243,55 @@ export const BotTableRow = memo(function BotTableRow({
- - {bot.type === 'youtube' && onEdit && ( + {/* 전체 동기화 */} + + + {/* 시작/정지 */} + + + + {/* 수정 (YouTube만) */} + {bot.type === 'youtube' && onEdit && ( + + + + )} + {/* 삭제 (YouTube만) */} + {bot.type === 'youtube' && onDelete && ( + + + )} -
diff --git a/frontend/src/pages/pc/admin/schedules/ScheduleBots.jsx b/frontend/src/pages/pc/admin/schedules/ScheduleBots.jsx index 66be3cb..975fbf7 100644 --- a/frontend/src/pages/pc/admin/schedules/ScheduleBots.jsx +++ b/frontend/src/pages/pc/admin/schedules/ScheduleBots.jsx @@ -398,6 +398,7 @@ function ScheduleBots() { onSync={handleSyncAllVideos} onToggle={toggleBot} onEdit={(bot) => {/* TODO: 봇 수정 모달 */}} + onDelete={(bot) => {/* TODO: 봇 삭제 확인 */}} onAnimationComplete={() => isInitialLoad && index === sectionBots.length - 1 && setIsInitialLoad(false) }