29 lines
537 B
JavaScript
29 lines
537 B
JavaScript
import PropTypes from 'prop-types'
|
|
|
|
import {jwennTeks} from '../../lib/oki-api'
|
|
|
|
import TeksDrawer from '../../components/teks/teks-drawer'
|
|
import HeadLayout from '../../components/head-layout'
|
|
|
|
export default function Teks({miziks}) {
|
|
return (
|
|
<HeadLayout title='Tèks' tab={2}>
|
|
<TeksDrawer miziks={miziks} />
|
|
</HeadLayout>
|
|
)
|
|
}
|
|
|
|
export async function getServerSideProps() {
|
|
const miziks = await jwennTeks()
|
|
|
|
return {
|
|
props: {
|
|
miziks
|
|
}
|
|
}
|
|
}
|
|
|
|
Teks.propTypes = {
|
|
miziks: PropTypes.array.isRequired
|
|
}
|