From 57d731ba18357cdcbeddd540b0488bc210995bf3 Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sun, 5 Oct 2025 18:50:48 +0000
Subject: fix: fix show no bookmark page when there isn't search results

---
 apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx')

diff --git a/apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx b/apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx
index 125c0e61..5ea48fd8 100644
--- a/apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx
+++ b/apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx
@@ -1,9 +1,10 @@
-import { useTranslation } from "@/lib/i18n/server";
+"use client";
+
+import { useTranslation } from "@/lib/i18n/client";
 import { Bookmark } from "lucide-react";
 
-export default async function NoBookmarksBanner() {
-  // oxlint-disable-next-line rules-of-hooks
-  const { t } = await useTranslation();
+export default function NoBookmarksBanner() {
+  const { t } = useTranslation();
   return (
     <div className="flex flex-col items-center justify-center rounded-lg bg-slate-50 p-10 text-center shadow-sm dark:bg-slate-700/50 dark:shadow-md">
       <div className="mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-slate-100 dark:bg-slate-700">
-- 
cgit v1.2.3-70-g09d2

