import { Tag, Typography } from 'antd' import { wrongQuestionApi } from '../api/client' import type { WrongQuestion } from '../types' import { STATUS_LABELS } from '../types' import WrongQuestionDetail from '../pages/WrongQuestionDetail' interface Props { items: WrongQuestion[] selectedId: string | null onSelect: (id: string | null) => void onRefresh: () => void emptyText?: string } export default function WrongQuestionList({ items, selectedId, onSelect, onRefresh, emptyText = '暂无记录', }: Props) { return ( <>