'use client' import { Level } from '@/types' import { Card, CardContent } from '@/components/ui/card' import { Button } from '@/components/ui/button' import { GripVertical, Pencil, Trash2 } from 'lucide-react' import Image from 'next/image' interface LevelCardProps { level: Level onEdit: (level: Level) => void onDelete: (id: string) => void isDragging?: boolean } export function LevelCard({ level, onEdit, onDelete, isDragging }: LevelCardProps) { return (
{level.imageUrl ? ( 关卡图片 ) : (
无图片
)}

{level.answer}

{level.hint1 && (

提示1: {level.hint1}

)} {level.hint2 && (

提示2: {level.hint2}

)} {level.hint3 && (

提示3: {level.hint3}

)}
) }