chore: initial commit

This commit is contained in:
Divlo
2021-10-24 05:19:39 +02:00
commit 21123c4477
145 changed files with 48821 additions and 0 deletions

View File

@ -0,0 +1,24 @@
import { Head } from 'components/Head'
import { authenticationFromServerSide } from 'utils/authentication'
import { Application, ApplicationProps } from 'components/Application'
const ApplicationPage: React.FC<ApplicationProps> = (props) => {
return (
<>
<Head title='Thream | Application' />
<Application authentication={props.authentication} guilds={props.guilds}>
<p>Main Content</p>
</Application>
</>
)
}
export const getServerSideProps = authenticationFromServerSide({
shouldBeAuthenticated: true,
fetchData: async (api) => {
const { data } = await api.get('/guilds')
return { guilds: data }
}
})
export default ApplicationPage