stacker.news/pages/notifications.js

18 lines
562 B
JavaScript
Raw Normal View History

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