slate/pages/_/index.js

16 lines
403 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 {
props: { viewer: query.viewer, analytics: query.analytics },
2020-07-16 08:48:51 +03:00
};
};
export default class ApplicationPage extends React.Component {
render() {
2020-08-19 21:17:12 +03:00
return <Application viewer={this.props.viewer} analytics={this.props.analytics} />;
2020-07-16 08:48:51 +03:00
}
}