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.

301 B
Raw Blame
import { useSettingsStore } from '../store/settingsStore'
import { weekStartDay } from '../utils/calendarWeek'

/** The current user's first weekday as a Date#getDay() number (#2029). */
export function useWeekStartDay(): number {
  return weekStartDay(useSettingsStore(s => s.settings.week_start))
}