2020-08-29 03:40:55 +00:00
|
|
|
import React, {ReactElement} from 'react';
|
2020-09-01 02:12:32 +00:00
|
|
|
import {Button} from 'react-native-paper';
|
2020-08-29 03:40:55 +00:00
|
|
|
import {ButtonProps} from '../models/ElementProps';
|
2020-09-01 02:12:32 +00:00
|
|
|
import {colors, styles} from './Styles';
|
2020-08-29 03:40:55 +00:00
|
|
|
|
|
|
|
export const CancelButton = (props: ButtonProps): ReactElement => {
|
|
|
|
return <Button
|
2020-09-01 19:55:23 +00:00
|
|
|
icon="cancel"
|
2020-09-01 02:12:32 +00:00
|
|
|
color={colors.text}
|
2020-08-29 03:40:55 +00:00
|
|
|
onPress={props.onClicked}
|
2020-09-01 02:12:32 +00:00
|
|
|
style={styles.btnLg}
|
|
|
|
labelStyle={styles.btnLg}
|
|
|
|
>Cancel</Button>;
|
2020-08-29 03:40:55 +00:00
|
|
|
};
|