import {CustomPage} from '@common/admin/custom-pages/custom-page'; import {useEffect, useRef} from 'react'; import {highlightCode} from '@common/text-editor/highlight/highlight-code'; interface CustomPageBodyProps { page: CustomPage; } export function CustomPageBody({page}: CustomPageBodyProps) { const bodyRef = useRef(null); useEffect(() => { if (bodyRef.current) { highlightCode(bodyRef.current); } }, []); return (

{page.title}

); }