app/frontend/shared/entities/ticket/composables/useTicketPreferences.ts
// Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
import { computed, type Ref } from 'vue'
import { type TicketById } from '#shared/entities/ticket/types.ts'
import type { JsonValue } from 'type-fest'
export const useTicketPreferences = (ticket: Ref<TicketById | undefined>) => {
const ticketPreferences = computed<Record<string, JsonValue>>(
() => ticket.value?.preferences,
)
return { ticketPreferences }
}