mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 13:38:01 -05:00
Signed-off-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import React from 'react';
|
|
import {View} from 'react-native';
|
|
import {Row, Text} from './ui';
|
|
import {Theme} from './ui/styleUtils';
|
|
import {Icon} from 'react-native-elements';
|
|
import testIDProps from '../shared/commonUtil';
|
|
|
|
export const BannerNotification: React.FC<BannerNotificationProps> = props => {
|
|
return (
|
|
<View {...testIDProps(props.testId)} style={props.customStyle}>
|
|
<Row
|
|
style={
|
|
props.customStyle
|
|
? Theme.Styles
|
|
.backupRestoreBanner /* TODO: rename to style without mentioning any specific flow */
|
|
: Theme.Styles.downloadingVcPopUp
|
|
}>
|
|
<Text color={Theme.Colors.whiteText} weight="semibold" size="smaller">
|
|
{props.message}
|
|
</Text>
|
|
<Icon
|
|
{...testIDProps('close')}
|
|
name="close"
|
|
onPress={props.onClosePress}
|
|
color={Theme.Colors.whiteText}
|
|
size={19}
|
|
/>
|
|
</Row>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
export interface BannerNotificationProps {
|
|
message: string;
|
|
onClosePress: () => void;
|
|
testId: string;
|
|
customStyle?: Object;
|
|
}
|