import React from "react";
import { Routes, Route } from "react-router-dom";
import { useIsServer } from "../hooks";
import { Loading } from "../ui/atoms/loading";
import { MainContentContainer } from "../ui/atoms/page-content";
import { ArticleActionsContainer } from "../ui/organisms/article-actions-container";
import { DocParent } from "../../../libs/types/document";
import { AdvertiseWithUs } from "./with_us";
interface LayoutProps {
withoutContainer?: boolean;
withSSR?: boolean;
parents?: DocParent[];
children: React.ReactNode;
}
function Layout({
withoutContainer = false,
withSSR = false,
parents = undefined,
children,
}: LayoutProps) {
const loading = ;
const isServer = useIsServer();
const inner = (
<>
{isServer ? (
withSSR ? (
children
) : (
loading
)
) : (
{children}
)}
>
);
return withoutContainer ? (
inner
) : (
<>
{parents && }
{inner}
>
);
}
export function Advertising({ pageTitle, ...props }: { pageTitle?: string }) {
return (
}
/>
);
}