import type { AppRegistryMeta } from '../../AppRegistry';
import { QrCode, ScanLine } from 'lucide-react';
import { QrSender } from './Sender';
import { QrReceiver } from './Receiver';

export { QrSender } from './Sender';
export { QrReceiver } from './Receiver';
export * from './protocol';

// TEMPORARY / EXPERIMENTAL — offline file transfer over animated QR codes, so a device with no shared
// network can still receive a file. See ./protocol.ts for the wire format, which is deliberately simple
// enough to reimplement on iOS and Android.

export const appRegistryMetas: AppRegistryMeta[] = [
  { key: 'qr-send', name: 'QR Send', icon: QrCode, component: QrSender },
  { key: 'qr-receive', name: 'QR Receive', icon: ScanLine, component: QrReceiver },
];
