import { Button, Card, Popover, Space, Tabs } from "antd"; import { Typography } from "antd"; import { InfoCircleOutlined } from "@ant-design/icons"; import Marked from "../general/Marked"; import MdView from "../template/MdView"; import "./style.css"; import DictInfoCopyRef from "./DictInfoCopyRef"; const { Title, Text } = Typography; export interface IWordByDict { dictname: string; description?: string; meta?: IDictInfo; word?: string; note?: string; anchor: string; } export interface IDictInfo { author: string; publisher: string; published?: string; url: string; } interface IWidgetWordCardByDict { data: IWordByDict; children?: React.ReactNode; } const WordCardByDictWidget = ({ data, children }: IWidgetWordCardByDict) => { return ( {data.dictname}
{data.dictname}
Author: {data.meta?.author}
Publish: {data.meta?.publisher}
At: {data.meta?.published}
), }, { label: "复制引用信息", key: "reference", children: , }, ]} /> } placement="bottom" >