useOnlineStatus follows the custom Hook naming convention and communicates that the function can use React Hooks internally.