<template>
    <div>
        <div v-if="$route.query.error" class="container pt-md-4">
            <div class="alert alert-danger">
                <Icon v="heart-broken" />
                <T>user.login.oauthError</T>
            </div>
        </div>
        <HomepageRoute v-if="$config.header" />
        <SelectVersionRoute v-else />
    </div>
</template>

<script lang="ts">
import Vue from 'vue';
import HomepageRoute from '../routes/homepage.vue';
import SelectVersionRoute from '../routes/select.vue';

export default Vue.extend({
    components: { HomepageRoute, SelectVersionRoute },
});
</script>
