import { Banner } from "@/components/Banner"; import { useBannerSize } from "@/hooks/useBanner"; import { useIsOnline } from "@/hooks/usePing"; import { ReactNode } from "react"; import { useTranslation } from "react-i18next"; export function Layout(props: { children: ReactNode }) { const { t } = useTranslation(); const isOnline = useIsOnline(); const bannerSize = useBannerSize(); return (
{!isOnline ? {t("errors.offline")} : null}
{props.children}
); }