import { computed } from 'vue'

export function useTime() {
  const greeting = computed(() => {
    const h = new Date().getHours()
    if (h < 11) return 'Guten Morgen'
    if (h < 18) return 'Guten Tag'
    return 'Guten Abend'
  })

  return { greeting }
}
