import styles from './index.less'
import Header from "./header";
import { Empty, Tag } from "antd";
import { ReactElement, JSXElementConstructor, ReactNode, ReactPortal, Key } from "react";
import { MyIcon } from "@/global";
// 热门书
export function HotBooks(props: {
data: {
appComponentId: number | string;
componentType: string;
showRightButton?: boolean;
componentName?: string;
remark?: string;
configs?: any[];
}
}) {
const { data: { configs, componentName, showRightButton } } = props
return
{configs?.[0]?.bookInfo ? <>
{configs?.[0]?.bookInfo?.vipFree && }
{
e.target.src = localStorage.getItem("nocover")
}} />
{configs?.[0]?.bookInfo?.bookName || "书名"}
{configs?.[0]?.bookInfo?.bookDesc || "描述"}
{configs?.[0]?.bookInfo?.authorInfo?.authorName || configs?.[0]?.bookInfo?.authorName }·{configs?.[0]?.bookInfo?.wordCount}万字·{configs?.[0]?.bookInfo?.bookStatus == 0 ? "连载中" : "完结"}
{configs?.[0]?.bookInfo?.labelInfoList?.[0]?.name}
{
configs?.filter((i: any, eq: number) => eq != 0)?.map((item: { bookInfo: { vipFree: any, picUrl: string | undefined; bookName: string | number | boolean | ReactElement
> | Iterable | ReactPortal | null | undefined; }; }, index: Key | null | undefined) => {
return
{item?.bookInfo?.vipFree &&
}

{
e.target.src = localStorage.getItem("nocover")
}} />
{item?.bookInfo?.bookName}
})
}
> :
}
}