export function useSwitchVariantPath() {
  const route = useRoute()
  return (variant) => {
    // Clone current params and replace variant
    const params = { ...route.params, variant }
    // Build a new path with the new params
    // This uses named routes (recommended). If not, fallback to direct path replace:
    if (route.name) {
      return { name: route.name, params }
    } else {
      // fallback: replace variant in path
      return route.fullPath.replace(
        `/${route.params.variant || ''}`,
        `/${variant}`
      )
    }
  }
}
