<template>
  <main id="app">
    <h1>{{ isOnline ? "Online" : "Offline" }}</h1>
  </main>
</template>

<script>
import { useNetworkDetection } from "@/services/useNetworkDetection";

export default {
  setup() {
    const { isOnline } = useNetworkDetection();

    return {
      isOnline
    };
  }
};
</script>
