"use client" import Logo from "@/assets/logo.svg" import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "@/components/ui/dialog" import { Skeleton } from "@/components/ui/skeleton" import { Loader2, X } from "lucide-react" import Image from "next/image" import { useEffect, useState } from "react" export default function Loading({ didFail = false, withNav = false, text = "", description = "", }: { didFail?: boolean withNav?: boolean text?: string description?: string }) { const [open, setOpen] = useState(false) useEffect(() => { if (text) { setOpen(true) } }, [text]) return (
{didFail ? ( <> Failed to start server. ) : ( <> {text} )} {didFail ? ( Try again soon. ) : description ? ( {description} ) : null} {withNav ? (
Logo
) : null}
Explorer
{new Array(6).fill(0).map((_, i) => ( ))}
Loading...
) }