2021-12-28 16:06:58 +01:00
|
|
|
import { NextPage } from 'next'
|
|
|
|
|
2021-10-24 06:09:43 +02:00
|
|
|
import { Head } from 'components/Head'
|
|
|
|
import { Application } from 'components/Application'
|
|
|
|
import {
|
|
|
|
authenticationFromServerSide,
|
|
|
|
AuthenticationProvider,
|
|
|
|
PagePropsWithAuthentication
|
|
|
|
} from 'utils/authentication'
|
2021-11-13 21:50:34 +01:00
|
|
|
import { JoinGuildsPublic } from 'components/Application/JoinGuildsPublic'
|
2021-10-24 06:09:43 +02:00
|
|
|
|
2021-12-28 16:06:58 +01:00
|
|
|
const JoinGuildPage: NextPage<PagePropsWithAuthentication> = (props) => {
|
2021-10-24 06:09:43 +02:00
|
|
|
return (
|
|
|
|
<AuthenticationProvider authentication={props.authentication}>
|
|
|
|
<Head title='Thream | Application' />
|
|
|
|
<Application path='/application/guilds/join'>
|
2021-11-13 21:50:34 +01:00
|
|
|
<JoinGuildsPublic />
|
2021-10-24 06:09:43 +02:00
|
|
|
</Application>
|
|
|
|
</AuthenticationProvider>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getServerSideProps = authenticationFromServerSide({
|
|
|
|
shouldBeAuthenticated: true
|
|
|
|
})
|
|
|
|
|
|
|
|
export default JoinGuildPage
|