@b8safe/react-native-safe
Version:
Package for native integration of B8Safe SDK
25 lines (24 loc) • 602 B
JavaScript
;
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { jsx as _jsx } from "react/jsx-runtime";
const ConnectionIcon = props => {
return /*#__PURE__*/_jsx(View, {
style: StyleSheet.compose(styles.icon, props.connected === true ? styles.connected : styles.disconnected)
});
};
const styles = StyleSheet.create({
icon: {
width: 6,
height: 6,
borderRadius: 3
},
connected: {
backgroundColor: 'green'
},
disconnected: {
backgroundColor: 'red'
}
});
export default ConnectionIcon;
//# sourceMappingURL=ConnectionIcon.js.map