mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-07 15:05:23 +02:00
37 lines
900 B
TypeScript
37 lines
900 B
TypeScript
import {
|
|
Dialog,
|
|
DialogContent,
|
|
DialogHeader,
|
|
DialogTitle,
|
|
DialogTrigger,
|
|
} from "@/components/ui/dialog";
|
|
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
|
|
import { useState } from "react";
|
|
import { GPUSupport } from "./gpu-support";
|
|
|
|
export const GPUSupportModal = () => {
|
|
const [isOpen, setIsOpen] = useState(false);
|
|
|
|
return (
|
|
<Dialog open={isOpen} onOpenChange={setIsOpen}>
|
|
<DialogTrigger asChild>
|
|
<DropdownMenuItem
|
|
className="w-full cursor-pointer"
|
|
onSelect={(e) => e.preventDefault()}
|
|
>
|
|
<span>GPU Setup</span>
|
|
</DropdownMenuItem>
|
|
</DialogTrigger>
|
|
<DialogContent className="sm:max-w-4xl overflow-y-auto max-h-screen">
|
|
<DialogHeader>
|
|
<DialogTitle className="flex items-center gap-2">
|
|
Dokploy Server GPU Setup
|
|
</DialogTitle>
|
|
</DialogHeader>
|
|
|
|
<GPUSupport serverId="" />
|
|
</DialogContent>
|
|
</Dialog>
|
|
);
|
|
};
|