UNPKG

@b8safe/react-native-safe

Version:
25 lines (24 loc) 602 B
"use strict"; 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