import { DeleteOutlined } from "@ant-design/icons"; import { Button, Flex, Popconfirm, Typography } from "antd"; import type { Conversation } from "../../../../shared/api"; interface ConversationCardProps { conversation: Conversation; onDelete: () => void; onSelect: () => void; selected: boolean; } export function ConversationCard({ conversation, onDelete, onSelect, selected }: ConversationCardProps) { const className = selected ? "app-sidebar-list-item app-sidebar-list-item--selected" : "app-sidebar-list-item"; return ( {conversation.title} e?.stopPropagation()} onConfirm={(e) => { e?.stopPropagation(); onDelete(); }} title="确认删除该对话?" >