import { AdSquares } from "@/components/common/ads";
import { SeoBreadcrumb } from "@/components/seo/seo-breadcrumb";
import type { HomePlayletResponse } from "@/lib/api/types";
import { FloatingActions } from "./floating-actions";
import { HeroBanner } from "./hero-banner";
import { HomeModules } from "./home-modules";
import { HomePageH5 } from "./home-page-h5";
import { NoticeMarquee } from "./notice-marquee";
import { DownloadBanner } from "./page-sections";
const HOME_H1_FALLBACK = "黄果黑料 - 热门短剧在线看";
export function HomePage({
home,
heading,
}: {
home?: HomePlayletResponse | null;
/** 与首页 TDK 对齐的主标题(H1) */
heading?: string | null;
}) {
const hasModules = Boolean(home?.modules?.some((module) => module.list?.length || module.topicList?.length));
const h1 = heading?.trim() || HOME_H1_FALLBACK;
return (
<>