import { Copy, FileText } from "lucide-react"; import type { ReactNode } from "react"; import { Button, Card, Tag } from "antd"; import { useTranslation } from "react-i18next"; import { formatPromptDate, type Prompt } from "@/services/api/prompts"; export function PromptCard({ item, onOpen, onCopy, actionLabel, actionIcon = , actionType = "text", extraAction, }: { item: Prompt; onOpen: () => void; onCopy: () => void; actionLabel?: string; actionIcon?: ReactNode; actionType?: "text" | "primary"; extraAction?: ReactNode; }) { const { i18n, t } = useTranslation(); return ( {item.coverUrl ? {item.title} : } } >
{extraAction}
); }