import React, { useState } from "react"; import Image from "next/image"; import { useTheme } from "next-themes"; // hooks import { UserCog2 } from "lucide-react"; import { Button } from "@plane/ui"; import { useApplication } from "hooks/store"; // ui // images import instanceSetupDone from "public/instance-setup-done.webp"; import PlaneBlackLogo from "public/plane-logos/black-horizontal-with-blue-logo.svg"; import PlaneWhiteLogo from "public/plane-logos/white-horizontal-with-blue-logo.svg"; export const InstanceSetupDone = () => { // states const [isRedirecting, setIsRedirecting] = useState(false); // next-themes const { resolvedTheme } = useTheme(); // store hooks const { instance: { fetchInstanceInfo }, } = useApplication(); const planeLogo = resolvedTheme === "dark" ? PlaneWhiteLogo : PlaneBlackLogo; const redirectToGodMode = async () => { setIsRedirecting(true); await fetchInstanceInfo().finally(() => setIsRedirecting(false)); }; return (
Plane logo
image
Your instance is now ready for more security, more controls, and more intelligence.

Use this wisely. Remember, with great power comes great responsibility.

); };