Files
portabase/src/components/wrappers/common/dialog.tsx
T

38 lines
1.3 KiB
TypeScript
Raw Normal View History

2025-05-16 15:54:17 +02:00
"use client";
2024-11-11 20:31:35 +01:00
2025-05-16 15:54:17 +02:00
import { Button } from "@/components/ui/button";
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
2024-11-11 20:31:35 +01:00
export type agentRegistrationDialogProps = {
2025-05-16 15:54:17 +02:00
open: boolean;
setOpen: (open: boolean) => void;
};
2024-11-11 20:31:35 +01:00
export const AgentRegistrationDialog = (props: agentRegistrationDialogProps) => {
2025-05-16 15:54:17 +02:00
const { open, setOpen } = props;
2024-11-11 20:31:35 +01:00
return (
<Dialog open={open} onOpenChange={setOpen}>
<DialogContent className="sm:max-w-[425px]">
<DialogHeader>
<DialogTitle>New agent registered!</DialogTitle>
</DialogHeader>
<div className="grid gap-4 py-4">
<div className="grid grid-cols-4 items-center gap-4">
<Label htmlFor="name" className="text-right">
2026-02-10 11:44:45 +01:00
CONNECTION KEY
2024-11-11 20:31:35 +01:00
</Label>
2025-05-16 15:54:17 +02:00
<Input id="name" value="Pedro Duarte" readOnly className="col-span-3" />
2024-11-11 20:31:35 +01:00
</div>
</div>
<DialogFooter>
<Button type="submit">Close</Button>
</DialogFooter>
</DialogContent>
</Dialog>
2025-05-16 15:54:17 +02:00
);
};