Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

509 B
Raw Blame
import { useSettingsStore } from '../store/settingsStore'

/**
 * Whether booking codes are drawn blurred for the signed-in user (the
 * "Blur booking codes" preference, blur_booking_codes). An unset preference
 * reads as off. The pieces in `components/shared/BookingCode` build on it;
 * reach for it directly only where a surface has to lay out a code
 * differently while it is hidden.
 */
export function useBlurBookingCodes(): boolean {
  return useSettingsStore(s => !!s.settings.blur_booking_codes)
}