"use client"

import { useNetworkState } from "react-use"

/** Whether the device has a network connection (the browser's / WebView's own flag), from react-use. */
export function useOnline(): boolean {
  return useNetworkState().online !== false
}
