- {children}
+
);
}
diff --git a/src/app/[locale]/saved/savedheader.tsx b/src/app/[locale]/saved/savedheader.tsx
new file mode 100644
index 0000000..0ed151f
--- /dev/null
+++ b/src/app/[locale]/saved/savedheader.tsx
@@ -0,0 +1,26 @@
+'use client';
+import { useTranslations } from 'next-intl';
+import { useUIStore } from '@/lib/uiStore';
+import { useStore } from 'zustand';
+import Cross from '@/components/icons/cross';
+
+export default function SavedHeader(props: any) {
+ const savedItems = useStore(useUIStore, (state) => state.savedItems);
+ const removeAll = useStore(useUIStore, (state) => state.removeAll);
+ const t = useTranslations('Saved');
+
+ return (
+
+ {t('saved_items')}
+ {savedItems?.length ? (
+
+ ) : null}
+
+ );
+}
diff --git a/src/components/modal/modal.tsx b/src/components/modal/modal.tsx
index 3e05bfc..53033dd 100644
--- a/src/components/modal/modal.tsx
+++ b/src/components/modal/modal.tsx
@@ -4,7 +4,8 @@ import { type ElementRef, useEffect, useRef, useCallback } from 'react';
import { usePathname, useRouter } from '@/navigation';
import cx from 'classnames';
import { createPortal } from 'react-dom';
-import SmoothButton from "@/components/smoothButton";
+import SmoothButton from '@/components/smoothButton';
+import Cross from '../icons/cross';
export default function Modal({ children }: { children: React.ReactNode }) {
const router = useRouter();
@@ -26,14 +27,15 @@ export default function Modal({ children }: { children: React.ReactNode }) {