"use client"; import FullscreenLoader from "@/components/loaders/fullscreen-loader"; import { useNetworkState } from "@uidotdev/usehooks"; import { ReactNode } from "react"; type Props = { children: ReactNode; }; export default function OfflineNetwork({ children }: Props) { const network = useNetworkState(); return !network.online ? (

Your device is offline. Check your internet connection.

Connection Type: {network.type}

} /> ) : ( children ); }