import { FC } from "react"; import { TouchableOpacity, StyleSheet } from "react-native"; import { Wifi } from "@react-buoy/shared-ui"; import { gameUIColors } from "@react-buoy/shared-ui"; interface NetworkToggleButtonProps { isOffline: boolean; onToggle: () => void; } /** * Small toggle used in the query browser to mock offline/online behavior. */ const NetworkToggleButton: FC = ({ isOffline, onToggle, }) => { return ( {isOffline ? ( ) : ( )} ); }; const styles = StyleSheet.create({ button: { width: 32, height: 32, borderRadius: 6, backgroundColor: "rgba(16, 185, 129, 0.1)", justifyContent: "center", alignItems: "center", borderWidth: 1, borderColor: "rgba(16, 185, 129, 0.2)", }, offlineButton: { backgroundColor: "rgba(239, 68, 68, 0.1)", borderColor: "rgba(239, 68, 68, 0.2)", }, }); export default NetworkToggleButton;