import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from "@/components/ui/dialog"; import { api } from "@/utils/api"; import { AlertBlock } from "@/components/shared/alert-block"; import { RefreshCcw } from "lucide-react"; import { useState } from "react"; import { toast } from "sonner"; import Link from "next/link"; import { UpdateWebServer } from "./update-webserver"; export const UpdateServer = () => { const [isUpdateAvailable, setIsUpdateAvailable] = useState( null, ); const { mutateAsync: checkAndUpdateImage, isLoading } = api.settings.checkAndUpdateImage.useMutation(); const [isOpen, setIsOpen] = useState(false); return ( Web Server Update Check new releases and update your dokploy
We suggest to update your dokploy to the latest version only if you:
  • Want to try the latest features
  • Some bug that is blocking to use some features
Please we recommend to see the latest version to see if there are any breaking changes before updating. Go to{" "} Dokploy Releases {" "} to check the latest version.
{isUpdateAvailable === false && (
You are using the latest version
)} {isUpdateAvailable ? ( ) : ( )}
); };