feat(cluster-nodes): enhance node management by adding serverId prop to components and implementing ShowNodesModal

This commit is contained in:
Mauricio Siu
2025-03-16 00:42:19 -06:00
parent 60c03e1ca7
commit 35ff8dcfe6
7 changed files with 141 additions and 52 deletions
@@ -9,8 +9,12 @@ import copy from "copy-to-clipboard";
import { CopyIcon } from "lucide-react";
import { toast } from "sonner";
export const AddManager = () => {
const { data } = api.cluster.addManager.useQuery();
interface Props {
serverId?: string;
}
export const AddManager = ({ serverId }: Props) => {
const { data } = api.cluster.addManager.useQuery({ serverId });
return (
<>