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.

532 B
Raw Blame
import { create } from 'zustand';

/**
 * Whether the inbox of bookings from forwarded mails is open. One flag for the
 * whole app, so the settings card, the account menu and a notification open
 * the same dialog (desktop) or sheet (phone), which the layout mounts once.
 */
export const useMailInboxOpen = create<{ open: boolean }>(() => ({ open: false }));

export const openMailInbox = (): void => useMailInboxOpen.setState({ open: true });
export const closeMailInbox = (): void => useMailInboxOpen.setState({ open: false });