import type { UiWidget } from './types' import { receiptMatcherWidget } from './receipt-matcher' import { vatReviewWidget } from './vat-review' import { pendingOperationsWidget } from './pending-operations' export const uiWidgets: UiWidget[] = [ receiptMatcherWidget, vatReviewWidget, pendingOperationsWidget, ] export function findUiWidget(uri: string): UiWidget | null { return uiWidgets.find((w) => w.uri === uri) ?? null } export type { UiWidget } from './types' export { WIDGET_MIME_TYPE } from './types'