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.

601 B
Raw Blame
import type { CardView } from '../cardTypes';
import { JournalChatBlock } from './JournalChatBlock';
import { TripChatBlock } from './TripChatBlock';

/**
 * How the home chat's kinds draw: the trip or the journal it offers to go on
 * with, beside the answer. This file only maps the kind to its view; the component lives
 * in a sibling file, since a file that exports anything besides components
 * breaks fast refresh.
 */
export const HOME_VIEWS = {
  tripChat: { Block: TripChatBlock },
  journalChat: { Block: JournalChatBlock },
} satisfies { [K in 'tripChat' | 'journalChat']: CardView<K> };