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.

264 B
Raw Blame
import { useAuthStore } from '../../../../store/authStore';

/** The signed-in user's id, which a card compares its people with; cards never say "me" themselves. */
export function useViewerId(): number | null {
  return useAuthStore((s) => s.user?.id ?? null);
}