Files

37 lines
873 B
JavaScript
Raw Permalink Normal View History

2023-07-22 13:02:11 +04:00
import Box from '@mui/material/Box'
import Container from '@mui/material/Container'
import {notFound} from 'next/navigation'
import {jwennStats} from '../lib/oki-api'
import Statistik from '../components/akey/statistik'
import Akey from '../components/akey'
import okiLogo from '../public/logo-512x512.png'
2023-07-23 10:28:43 +04:00
import Footer from '../components/footer'
2023-11-06 19:12:35 +04:00
import Aso from '../components/akey/aso'
2023-07-22 13:02:11 +04:00
async function jwennDone() {
const statistik = await jwennStats()
if (!statistik) {
notFound()
}
return statistik
}
export default async function Page() {
const statistik = await jwennDone()
return (
<Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
<Akey logo={okiLogo} />
<Container sx={{flexGrow: 100}}>
<Statistik statistik={statistik} />
2023-11-06 19:12:35 +04:00
<Aso />
2023-07-22 13:02:11 +04:00
</Container>
2023-07-23 10:28:43 +04:00
<Footer />
2023-07-22 13:02:11 +04:00
</Box>
)
}