'use client' import { Level } from '@/types' import { Button } from '@/components/ui/button' import { Pencil, Trash2 } from 'lucide-react' import Image from 'next/image' // 列宽定义,header 和 row 必须保持一致。用 grid-template-columns 统一控制。 // 序号 | 图片 | 答案 | 谐音梗 | 提示 | 创建时间 | 操作 export const GRID_TEMPLATE = 'minmax(60px,60px) minmax(120px,120px) minmax(80px,1fr) minmax(100px,1fr) minmax(160px,2fr) minmax(100px,100px) minmax(100px,100px)' interface LevelRowProps { level: Level index: number onEdit: (level: Level) => void onDelete: (id: string) => void } export function LevelRow({ level, index, onEdit, onDelete }: LevelRowProps) { return (