2022-04-21 17:48:27 +00:00
|
|
|
import { getGetServerSideProps } from '../api/ssrApollo'
|
|
|
|
import Layout from '../components/layout'
|
|
|
|
import Notifications from '../components/notifications'
|
|
|
|
import { NOTIFICATIONS } from '../fragments/notifications'
|
2022-04-20 21:35:07 +00:00
|
|
|
import { useRouter } from 'next/router'
|
|
|
|
|
|
|
|
export const getServerSideProps = getGetServerSideProps(NOTIFICATIONS)
|
|
|
|
|
|
|
|
export default function NotificationPage ({ data: { notifications: { notifications, cursor, lastChecked } } }) {
|
|
|
|
const router = useRouter()
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Layout>
|
|
|
|
<Notifications
|
|
|
|
notifications={notifications} cursor={cursor}
|
2022-04-21 17:48:27 +00:00
|
|
|
lastChecked={lastChecked} variables={{ inc: router.query?.inc }}
|
2022-04-20 21:35:07 +00:00
|
|
|
/>
|
|
|
|
</Layout>
|
|
|
|
)
|
|
|
|
}
|