hunk.code_window: export function useNav(route: ComputedRef<RouteRecordRaw | RouteLocationNormalizedLoaded>): SlidevContextNav {
     const path = computed(() => route.value.path)
     const total = computed(() => rawRoutes.length)
     const currentPage = computed(() => parseInt(path.value.split(/\//g).slice(-1)[0]) || 1)
     const currentPath = computed(() => getPath(currentPage.value))
     const currentRoute = computed(() => rawRoutes.find(i => i.path === `${currentPage.value}`))
     const currentSlideId = computed(() => currentRoute.value?.meta?.slide?.id)
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:   const currentPage = computed(() => Number.parseInt(path.value.split(/\//g).slice(-1)[0]) || 1)
  
hunk.file_path: packages/client/composables/useNav.ts
hunk.type: replace
file: # @slidev/client
  
  [![NPM version](https://img.shields.io/npm/v/@slidev/client?color=3AB9D4&label=)](https://www.npmjs.com/package/@slidev/client)
  
  Client code for [Slidev](https://sli.dev). Shipped with [`@slidev/cli`](https://www.npmjs.com/package/@slidev/cli).
  
  ## License
  
  MIT License © 2021 [Anthony Fu](https://github.com/antfu)
  
  