import { Col, Progress, Row, Space, Tabs } from "antd"; import { Typography } from "antd"; import { LikeOutlined, EyeOutlined } from "@ant-design/icons"; import { ChannelInfoProps } from "../api/Channel"; import ChannelListItem from "../channel/ChannelListItem"; import TimeShow from "../general/TimeShow"; import { useIntl } from "react-intl"; import { Link } from "react-router-dom"; const { Text } = Typography; export interface IChapterChannelData { channel: ChannelInfoProps; progress: number; hit: number; like: number; updatedAt: string; } interface IWidgetChapterInChannel { data: IChapterChannelData[]; book: number; para: number; } const Widget = ({ data, book, para }: IWidgetChapterInChannel) => { const intl = useIntl(); //i18n function getTab(type: string): JSX.Element[] { const output = data.map((item, id) => { if (item.channel.channelType === type) { return (