/* * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file) * * SPDX-License-Identifier: AGPL-3.0-only */ import { useApplyDarkModeStyle } from '../../hooks/dark-mode/use-apply-dark-mode-style' import { useSaveDarkModePreferenceToLocalStorage } from '../../hooks/dark-mode/use-save-dark-mode-preference-to-local-storage' import { MotdModal } from '../common/motd-modal/motd-modal' import { Footer } from './footer/footer' import { HeaderBar } from './navigation/header-bar/header-bar' import type { PropsWithChildren } from 'react' import React from 'react' import { Container } from 'react-bootstrap' /** * Renders the layout for both intro and history page. * * @param children The children that should be rendered on the page. */ export const LandingLayout: React.FC = ({ children }) => { useApplyDarkModeStyle() useSaveDarkModePreferenceToLocalStorage() return (
{children}
) }