import { ChannelHeader, H5ChannelHeader } from "@/components/common/channel-header"; import { EmptyState } from "@/components/common/empty-state"; import { FilterChipLink, FilterOptionLink } from "@/components/common/filter-link"; import { Pagination } from "@/components/common/pagination"; import { buildPageHrefMap } from "@/components/common/pagination-map"; import { FloatingActions } from "@/components/home/floating-actions"; import { H5SectionHeading } from "@/components/home/h5-cards"; import { DownloadBanner } from "@/components/home/page-sections"; import { SeoBreadcrumb } from "@/components/seo/seo-breadcrumb"; import { sortLabels, sorts, type ShortDramaListResult } from "./data"; import { shortDramaListHref } from "./route"; import { H5ShortDramaCard, ShortDramaCard } from "./short-drama-card"; export function ShortDramaPage({ list }: { list: ShortDramaListResult }) { const hrefMap = buildPageHrefMap(list.totalPages, (page) => shortDramaListHref(list.sort, page, list.themeSlug), ); const resetHref = shortDramaListHref("hot", 1); const themes = list.themes.filter((theme) => theme.name); return ( <>
{themes.length ? (
题材:
{themes.map((theme) => ( ))}
) : null}
排序:
{sorts.map((item) => ( ))}
{list.items.length ? ( <>
{list.items.map((item) => ( ))}
{list.totalPages > 1 ? ( ) : null} ) : ( )}
{themes.length ? (
题材:
{themes.map((theme) => ( ))}
) : null}
排序:
{sorts.map((item) => ( ))}
{list.items.length ? (
{list.items.map((item) => ( ))}
) : ( )}
{/* 分页放在 design-frame 外,避免 Chrome CSS zoom 热区错位导致点击无响应 */} {list.items.length && list.totalPages > 1 ? (
) : null}
); }