import { EmptyState } from "@/components/common/empty-state";
import { InfoPageShell, infoCardClass } from "@/components/info/info-page-layout";
import type { RichTextInfo } from "@/lib/api/types";
const richtextBodyClass =
"richtext-body [&_a]:text-[#F12B9E] [&_h1]:mb-2 [&_h1]:font-bold [&_h2]:mt-3 [&_h2]:mb-1.5 [&_h2]:font-bold [&_h3]:mt-2 [&_h3]:mb-1 [&_h3]:font-semibold [&_li]:ml-4 [&_li]:list-disc [&_p]:mb-2 [&_ul]:mb-2";
export function HelpPage({ data }: { data: RichTextInfo | null }) {
const html = data?.content?.trim() || "";
const subtitle = data?.seoInfo?.description?.trim() || data?.title?.trim() || "常见问题与使用指南";
return (
) : (
)
}>
{html ? (
) : (
)}
);
}