import React, {ReactElement} from 'react';
import {Button, Text, View} from 'react-native';
// @ts-ignore
import Barcode from 'react-native-barcode-builder';
import {BarCodeProps, ButtonProps, PrintingProps} from '../models/ElementProps';
import {styles} from './Styles';
export const PrintButton = (props: ButtonProps): ReactElement => {
return ;
}
export const PrintingMessage = (props: PrintingProps): ReactElement => {
return
Printing...
;
}
export const BarCodeDisplay = (props: BarCodeProps): ReactElement => {
const data = `${props.id}-${props.date.getTime()}-${props.location}`;
return
ID#: {props.id}
Date: {props.date.toLocaleDateString()}, {props.date.toLocaleTimeString()}
Location {props.location}
;
}