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.

626 B
Raw Blame
import type { ReactElement } from 'react';
import { useMailInboxShell } from '../../../components/MailIngest/useMailInboxShell';
import { useAuthStore } from '../../../store/authStore';
import MMailInboxSheet from './MMailInboxSheet';

/**
 * The phone shell's one inbox of bookings from forwarded mails: the shell's
 * inbox wiring (settings, events, ?inbox=mail) and the sheet, mounted only
 * where the import is on.
 */
export default function MMailInboxHost(): ReactElement | null {
  const userId = useAuthStore((s) => s.user?.id);
  const { on } = useMailInboxShell(userId);
  return on ? <MMailInboxSheet /> : null;
}