slate/pages/_/index.js

28 lines
594 B
JavaScript
Raw Normal View History

2020-07-16 08:48:51 +03:00
import * as React from "react";
import Application from "~/components/core/Application";
2020-07-16 08:48:51 +03:00
export const getServerSideProps = async ({ query }) => {
2020-07-16 08:48:51 +03:00
return {
2020-10-05 00:30:28 +03:00
props: {
viewer: query.viewer,
analytics: query.analytics,
mobile: query.mobile,
resources: query.resources,
2020-10-05 00:30:28 +03:00
},
2020-07-16 08:48:51 +03:00
};
};
export default class ApplicationPage extends React.Component {
render() {
2020-10-09 05:39:57 +03:00
return (
<Application
viewer={this.props.viewer}
analytics={this.props.analytics}
2020-10-05 00:30:28 +03:00
mobile={this.props.mobile}
resources={this.props.resources}
2020-10-09 05:39:57 +03:00
/>
);
2020-07-16 08:48:51 +03:00
}
}