{currentCards.map((card, key) => (
-
+
))}
{
+
+ let style = "";
+
+ const interval = new Date().getTime() - new Date(date).getTime()
+
+ if (interval < 10000) {
+ style = "bg-green-400 border-green-600"
+ } else if (1000 <= interval && interval <= 20000) {
+ style = "bg-orange-400 border-orange-600"
+ } else {
+ style = "bg-red-400 border-red-600"
+ }
+
+ return (
+
+ )
+}
\ No newline at end of file
diff --git a/src/components/wrappers/dialog.tsx b/src/components/wrappers/dialog.tsx
new file mode 100644
index 00000000..3bb4f240
--- /dev/null
+++ b/src/components/wrappers/dialog.tsx
@@ -0,0 +1,44 @@
+"use client"
+
+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"
+
+
+export type agentRegistrationDialogProps = {
+ open: boolean,
+ setOpen: (open: boolean) => void,
+}
+
+
+export const AgentRegistrationDialog = (props: agentRegistrationDialogProps) => {
+
+ const {open, setOpen} = props;
+
+ return (
+
+ )
+}
\ No newline at end of file
diff --git a/src/features/backup/columns.tsx b/src/features/backup/columns.tsx
index 30bb2d26..fa5e8596 100644
--- a/src/features/backup/columns.tsx
+++ b/src/features/backup/columns.tsx
@@ -10,7 +10,8 @@ import {
DropdownMenuTrigger
} from "@/components/ui/dropdown-menu";
import {Button} from "@/components/ui/button";
-import {MoreHorizontal} from "lucide-react";
+import {Download, MoreHorizontal, Trash2} from "lucide-react";
+import {ReloadIcon} from "@radix-ui/react-icons";
export type Backup = {
id: string
@@ -52,14 +53,24 @@ export const backupColumns: ColumnDef[] = [
Actions
- navigator.clipboard.writeText(payment.id)}
- >
- Copy payment ID
+
+ {
+ }}>
+ Restore
+
+ {
+ }}>
+ Download
+
+
- View customer
- View payment details
+
+ {
+ }}>
+ Delete
+
+
)
diff --git a/src/features/restore/columns.tsx b/src/features/restore/columns.tsx
index afd84d69..0305fd28 100644
--- a/src/features/restore/columns.tsx
+++ b/src/features/restore/columns.tsx
@@ -10,7 +10,8 @@ import {
DropdownMenuTrigger
} from "@/components/ui/dropdown-menu";
import {Button} from "@/components/ui/button";
-import {MoreHorizontal} from "lucide-react";
+import {Download, MoreHorizontal, Trash2} from "lucide-react";
+import {ReloadIcon} from "@radix-ui/react-icons";
export type Restore = {
id: string
@@ -52,14 +53,13 @@ export const restoreColumns: ColumnDef[] = [
Actions
- navigator.clipboard.writeText(payment.id)}
- >
- Copy payment ID
+
+ {
+ }}>
+ Rerun
-
- View customer
- View payment details
+
+
)