<script setup lang="ts">
defineProps<{
  items: {
    title: string
  }[]
  selected: number
  change: (i: number) => void
}>()
</script>

<template>
  <div class="inline-flex justify-end ">
    <TabsV2Item v-for="(link, i) in items" :key="i" v-bind="link" :active="selected === i" class="cursor-pointer" @click="change(i)" />
  </div>
</template>
