"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 (