import type { AppRegistryMeta } from 'officerdev'; import { CalendarDays, PanelLeft } from 'lucide-react'; import { panelName } from 'officerdev'; import { CalendarNav } from '../dav/CollectionNav'; import { CalendarView } from '../dav/CalendarView'; // `panels.ts`, not `.tsx` — discovery checks for that exact name. // // The components live one level up in `dav/`, shared with the contacts screen: they are the same sidecar, // the same collection list and the same selection rule, differing only in which kind of collection they // show. Two screens, one implementation. // // `panelName` still resolves through the platform's catalogs, so these keep the six translations they had // as core screens. See the note beside its export in officerdev's barrel. export const appRegistryMetas: AppRegistryMeta[] = [ { key: 'calendar-nav', name: panelName('panelName.calendar'), icon: PanelLeft, component: CalendarNav, availableOnPanel: false, }, { key: 'calendar-view', name: panelName('panelName.calendar'), icon: CalendarDays, component: CalendarView, availableOnPanel: false, }, ];