<script setup lang="ts">
const props = defineProps({
  to: {
    type: String,
    required: true,
  },
})

const localePath = useLocalePath()
</script>

<template>
  <NuxtLink :to="localePath(props.to)">
    <slot />
  </NuxtLink>
</template>
