mirror of
https://github.com/sartography/uva-covid19-testing-kiosk.git
synced 2025-02-20 03:18:32 +00:00
29 lines
627 B
TypeScript
29 lines
627 B
TypeScript
|
import {BarCodeScannedCallback} from 'expo-barcode-scanner';
|
||
|
import {BarcodeScannerAppState} from './BarcodeScannerAppState';
|
||
|
|
||
|
export interface ElementProps {
|
||
|
title?: string;
|
||
|
}
|
||
|
|
||
|
export interface StateProps extends ElementProps {
|
||
|
appState: BarcodeScannerAppState;
|
||
|
}
|
||
|
|
||
|
export interface BarCodeProps extends ElementProps {
|
||
|
id: string;
|
||
|
date: Date;
|
||
|
location: string;
|
||
|
}
|
||
|
|
||
|
export interface ButtonProps extends ElementProps {
|
||
|
onClicked: () => void;
|
||
|
}
|
||
|
|
||
|
export interface ScannerProps extends ElementProps {
|
||
|
onScanned: BarCodeScannedCallback;
|
||
|
}
|
||
|
|
||
|
export interface PrintingProps extends ElementProps {
|
||
|
onCancel: () => void;
|
||
|
}
|