import { useState } from "react"; import { Button, Dropdown, Space, Typography } from "antd"; import { ShareAltOutlined, ExportOutlined } from "@ant-design/icons"; import ExportModal from "./ExportModal"; import type { ArticleType } from "../article/Article" const { Text } = Typography; interface IWidget { type?: ArticleType; articleId?: string; book?: string | null; para?: string | null; channelId?: string | null; anthologyId?: string | null; } const ShareButtonWidget = ({ type, book, para, channelId, articleId, anthologyId, }: IWidget) => { const [exportOpen, setExportOpen] = useState(false); return ( <> {"Export"} {"PDF,Word,Html"} ), key: "export", icon: , }, ], onClick: ({ key }) => { switch (key) { case "export": setExportOpen(true); break; default: break; } }, }} >