mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
37 lines
744 B
JavaScript
37 lines
744 B
JavaScript
import React from 'react'
|
|
|
|
import Forum from '../components/forum'
|
|
|
|
import styles from './index.module.css'
|
|
|
|
export default function UserForum({
|
|
router,
|
|
globalData,
|
|
globalState,
|
|
setGlobalState,
|
|
}) {
|
|
const motd = globalData.motd
|
|
|
|
return (
|
|
<>
|
|
{motd && (
|
|
<div className={styles.topMsg}>
|
|
<div className={styles.title}>MOTD</div>
|
|
{motd ? (
|
|
<div dangerouslySetInnerHTML={{ __html: motd }} />
|
|
) : (
|
|
<div>...</div>
|
|
)}
|
|
</div>
|
|
)}
|
|
<Forum
|
|
allowPost
|
|
router={router}
|
|
globalState={globalState}
|
|
setGlobalState={setGlobalState}
|
|
globalData={globalData}
|
|
forumName={'userForum'}
|
|
/>
|
|
</>
|
|
)
|
|
}
|