mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
29 lines
825 B
TypeScript
29 lines
825 B
TypeScript
import { useState } from "react";
|
|
import { ShowSchedules } from "@/components/dashboard/application/schedules/show-schedules";
|
|
import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog";
|
|
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
|
|
|
|
interface Props {
|
|
serverId: string;
|
|
}
|
|
|
|
export const ShowSchedulesModal = ({ serverId }: Props) => {
|
|
const [isOpen, setIsOpen] = useState(false);
|
|
|
|
return (
|
|
<Dialog open={isOpen} onOpenChange={setIsOpen}>
|
|
<DialogTrigger asChild>
|
|
<DropdownMenuItem
|
|
className="w-full cursor-pointer "
|
|
onSelect={(e) => e.preventDefault()}
|
|
>
|
|
Show Schedules
|
|
</DropdownMenuItem>
|
|
</DialogTrigger>
|
|
<DialogContent className="sm:max-w-5xl ">
|
|
<ShowSchedules id={serverId} scheduleType="server" />
|
|
</DialogContent>
|
|
</Dialog>
|
|
);
|
|
};
|