import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "@/components/ui/alert-dialog"; import { Button } from "@/components/ui/button"; import { api } from "@/utils/api"; import { toast } from "sonner"; export const UpdateWebServer = () => { const { mutateAsync: updateServer, isLoading } = api.settings.updateServer.useMutation(); return ( Are you absolutely sure? This action cannot be undone. This will update the web server to the new version. Cancel { await updateServer(); toast.success("Please reload the browser to see the changes"); }} > Confirm ); };