import type { AppRegistryMeta } from '../../AppRegistry';
import { CalendarDays, Contact as ContactIcon, PanelLeft } from 'lucide-react';
import { CalendarNav, ContactsNav } from './CollectionNav';
import { CalendarView } from './CalendarView';
import { ContactsView } from './ContactsView';

// One app folder for both /calendar and /contacts: they are the same DAV sidecar, the same collection
// list and the same selection rule, differing only in which kind of collection they show.

export { CalendarNav, ContactsNav, CalendarView, ContactsView };

export const appRegistryMetas: AppRegistryMeta[] = [
  { key: 'calendar-nav', name: 'Calendar', icon: PanelLeft, component: CalendarNav, availableOnPanel: false },
  { key: 'calendar-view', name: 'Calendar', icon: CalendarDays, component: CalendarView, availableOnPanel: false },
  { key: 'contacts-nav', name: 'Contacts', icon: PanelLeft, component: ContactsNav, availableOnPanel: false },
  { key: 'contacts-view', name: 'Contacts', icon: ContactIcon, component: ContactsView, availableOnPanel: false },
];
