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

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

<template>
	<Navbar :active-tab="activeTab">
		<template #tabs>
			<NavTab href="/ns/routes" value="index" name="自定义线路"></NavTab>
			<NavTab separator></NavTab>
			<NavTab static @click.prevent="ctx.createRoute()" name="创建线路" action-create></NavTab>
			<NavTab separator></NavTab>
			<NavTab href="/ns/routes/internal" value="internal" name="内置线路"></NavTab>
		</template>
	</Navbar>
</template>

<style scoped>

</style>