<script setup>
import Navbar from "@/components/common/Navbar.vue";
import NavTab from "@/components/common/NavTab.vue";

const props = defineProps(["ctx", "activeTab"])
</script>

<template>
	<Navbar secondary :active-tab="activeTab">
		<template #tabs>
			<NavTab :href="'/servers/server/stat?serverId=' + ctx.serverId" value="minutely" name="即时"></NavTab>
			<NavTab :href="'/servers/server/stat/hourlyRequests?serverId=' + ctx.serverId" value="hourly" name="按小时"></NavTab>
			<NavTab :href="'/servers/server/stat/dailyRequests?serverId=' + ctx.serverId" value="daily" name="按天"></NavTab>
		</template>
	</Navbar>
</template>

<style scoped lang="postcss">

</style>