<script lang="ts" setup>
		import { useRoute } from 'vue-router'
		import { ref } from "vue";
		import AdminPanelLib from "../../adminpanellib.ts";
		import AdminNavbar from "../../components/admin/AdminNavbar.vue";

		const route = useRoute();

		const token=ref(route.params.token);
		const userinfo=ref({})

		AdminPanelLib.AdminPanelLib.getUserInfo(token.value).then((result)=>userinfo.value=result);

		
</script>
<template>
		<AdminNavbar/>
	<h1>Admin Panel</h1>
	<h2>Moin {{ userinfo.username }}!</h2>
</template>
