mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-28 14:04:43 -04:00

These hooks are only necessary for the document and simple renderer. The slideshow handles theming itself. Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
22 lines
755 B
TypeScript
22 lines
755 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
import { RendererToEditorCommunicatorContextProvider } from '../components/editor-page/render-context/renderer-to-editor-communicator-context-provider'
|
|
import { RenderPageContent } from '../components/render-page/render-page-content'
|
|
import type { NextPage } from 'next'
|
|
import React from 'react'
|
|
|
|
/**
|
|
* Renders the actual markdown renderer that receives the content and metadata via iframe communication.
|
|
*/
|
|
export const RenderPage: NextPage = () => {
|
|
return (
|
|
<RendererToEditorCommunicatorContextProvider>
|
|
<RenderPageContent />
|
|
</RendererToEditorCommunicatorContextProvider>
|
|
)
|
|
}
|
|
|
|
export default RenderPage
|