Dominik Milacher 85d080ab05
All checks were successful
Build and deploy updated apps / Build & deploy (push) Successful in 2m12s
Add panoramablick implementation
2025-06-13 23:11:04 +02:00

23 lines
474 B
TypeScript

// ~/composables/useApartments.ts
import {computed} from 'vue' // ① explizit importieren
import {useI18n} from '#imports'
export interface Apartment {
title: string
subtitle: string
images: string[]
features: { icon: string; label: string }[]
}
export function useApartments() {
const {t} = useI18n()
const list = computed(() =>
t('apartments') as unknown as Apartment[]
)
const lst = list//[1, 2, 3]
return {lst}
}