import { Col, List, Modal, Progress, Row, Space, Typography } from "antd"; import ChannelListItem from "../channel/ChannelListItem"; import type { IChapterChannelData } from "./ChapterInChannel" import { LikeOutlined, EyeOutlined } from "@ant-design/icons"; import { useState } from "react"; import TimeShow from "../general/TimeShow"; const { Text } = Typography; /** * 章节中的版本选择对话框 * @returns */ interface IWidget { trigger?: JSX.Element | string; channels?: IChapterChannelData[]; currChannel?: string; onSelect?: Function; } const ChapterChannelSelectWidget = ({ trigger, channels, currChannel, onSelect, }: IWidget) => { const [open, setOpen] = useState(false); const handleCancel = () => { setOpen(false); }; return (