2020-12-13 23:20:07 +01:00
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
|
|
|
|
|
|
import {jwennTeks} from '../../lib/oki-api'
|
|
|
|
|
|
|
|
|
|
import TeksDrawer from '../../components/teks/teks-drawer'
|
2020-12-15 23:46:05 +01:00
|
|
|
import HeadLayout from '../../components/head-layout'
|
2020-12-13 23:20:07 +01:00
|
|
|
|
|
|
|
|
export default function Teks({miziks}) {
|
|
|
|
|
return (
|
2020-12-15 23:46:05 +01:00
|
|
|
<HeadLayout title='Tèks' tab={2}>
|
2020-12-13 23:20:07 +01:00
|
|
|
<TeksDrawer miziks={miziks} />
|
2020-12-15 23:46:05 +01:00
|
|
|
</HeadLayout>
|
2020-12-13 23:20:07 +01:00
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function getServerSideProps() {
|
|
|
|
|
const miziks = await jwennTeks()
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
props: {
|
|
|
|
|
miziks
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Teks.propTypes = {
|
|
|
|
|
miziks: PropTypes.array.isRequired
|
|
|
|
|
}
|