slate/pages/_/index.js

28 lines
594 B
JavaScript

import * as React from "react";
import Application from "~/components/core/Application";
export const getServerSideProps = async ({ query }) => {
return {
props: {
viewer: query.viewer,
analytics: query.analytics,
mobile: query.mobile,
resources: query.resources,
},
};
};
export default class ApplicationPage extends React.Component {
render() {
return (
<Application
viewer={this.props.viewer}
analytics={this.props.analytics}
mobile={this.props.mobile}
resources={this.props.resources}
/>
);
}
}