stacker.news/pages/notifications.js

18 lines
562 B
JavaScript
Raw Normal View History

2021-10-26 20:49:37 +00:00
import { getGetServerSideProps } from '../api/ssrApollo'
2021-06-24 23:56:01 +00:00
import Layout from '../components/layout'
import Notifications from '../components/notifications'
2021-09-30 15:46:58 +00:00
import { NOTIFICATIONS } from '../fragments/notifications'
2021-06-24 23:56:01 +00:00
2021-10-26 20:49:37 +00:00
export const getServerSideProps = getGetServerSideProps(NOTIFICATIONS)
2021-09-30 15:46:58 +00:00
2021-10-26 20:49:37 +00:00
export default function NotificationPage ({ data: { notifications: { notifications, cursor, lastChecked } } }) {
2021-06-24 23:56:01 +00:00
return (
<Layout>
2021-09-30 15:46:58 +00:00
<Notifications
notifications={notifications} cursor={cursor}
2021-10-26 20:49:37 +00:00
lastChecked={lastChecked}
2021-09-30 15:46:58 +00:00
/>
2021-06-24 23:56:01 +00:00
</Layout>
)
}