diff --git a/src/pages/sq/dashboard/wa-hook/wa_hook_home.tsx b/src/pages/sq/dashboard/wa-hook/wa_hook_home.tsx
index dd52f51..f8f2a41 100644
--- a/src/pages/sq/dashboard/wa-hook/wa_hook_home.tsx
+++ b/src/pages/sq/dashboard/wa-hook/wa_hook_home.tsx
@@ -1,8 +1,9 @@
import apiFetch from "@/lib/apiFetch";
-import { Card, Pagination, Skeleton, Stack, Text, Title } from "@mantine/core";
+import { Button, Card, Pagination, Skeleton, Stack, Text, Title } from "@mantine/core";
import { useLocalStorage, useShallowEffect } from "@mantine/hooks";
import dayjs from "dayjs";
import useSWR from "swr";
+import { showNotification } from "@mantine/notifications";
export default function WaHookHome() {
const [page, setPage] = useLocalStorage({
@@ -24,11 +25,18 @@ export default function WaHookHome() {
setPage(data?.data?.list?.length || 1)
}, [])
+ async function reset() {
+ await apiFetch["wa-hook"].reset.post()
+ mutate()
+ showNotification({ title: "Success", message: "WhatsApp Hook reset", color: "green" })
+ }
+
if (isLoading) return