completionId: cgen-f929829b7c954956bc9bc67c906c05e6
cgen-f929829b7c954956bc9bc67c906c05e6
This commit is contained in:
parent
9d20c617de
commit
07acc1ba68
1 changed files with 29 additions and 0 deletions
|
|
@ -13,9 +13,38 @@ import {
|
|||
ExternalLink,
|
||||
} from "lucide-react";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { useEffect, useState, useRef } from "react";
|
||||
import LoadingScreen from "@/components/LoadingScreen";
|
||||
import { aethexToast } from "@/lib/aethex-toast";
|
||||
|
||||
export default function Labs() {
|
||||
const navigate = useNavigate();
|
||||
const [isLoading, setIsLoading] = useState(true);
|
||||
const toastShownRef = useRef(false);
|
||||
|
||||
useEffect(() => {
|
||||
const timer = setTimeout(() => {
|
||||
setIsLoading(false);
|
||||
if (!toastShownRef.current) {
|
||||
aethexToast.system("Labs mainframe linked");
|
||||
toastShownRef.current = true;
|
||||
}
|
||||
}, 900);
|
||||
|
||||
return () => clearTimeout(timer);
|
||||
}, []);
|
||||
|
||||
if (isLoading) {
|
||||
return (
|
||||
<LoadingScreen
|
||||
message="Initializing Research Module..."
|
||||
showProgress={true}
|
||||
duration={900}
|
||||
accentColor="from-yellow-500 to-yellow-400"
|
||||
armLogo="https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2F85fe7910cff6483db1ea99c154684844?format=webp&width=800"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
const projects = [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue