import { AntdRegistry } from "@ant-design/nextjs-registry";
import { Providers } from "@ebook/components/Providers";
import { getSiteConfig } from "@ebook/lib/site-config.server";
import { getServerFeatures } from "@ebook/lib/features.server";
import { getLocale } from "@ebook/lib/i18n/server";
import "@ebook/app/globals.css";
export default async function BookLayout({
children,
}: {
children: React.ReactNode;
}) {
const locale = await getLocale();
const site = getSiteConfig();
const f = getServerFeatures();
return (
{f.analytics.enabled ? : null}
{f.ads.enabled && f.ads.clientId ? : null}
{children}
{f.feedback.enabled ? (
) : null}
);
}
function AnalyticsLazy() {
const { AnalyticsProvider } = require("@ebook/components/AnalyticsProvider");
return ;
}
function AdSenseLazy() {
const { AdSenseScript } = require("@ebook/components/AdSlot");
return ;
}
function FeedbackLazy(props: {
title: string;
subtitle: string;
contactEmail: string;
xHandle: string;
}) {
const { FeedbackPanel } = require("@ebook/components/FeedbackPanel");
return ;
}