Authentication Required
Please connect your wallet to view your bookmarks.
import { useState } from 'react'; import { useNavigate } from 'react-router-dom'; import Header from '@/components/Header'; import { BookmarkList } from '@/components/ui/bookmark-card'; import { Button } from '@/components/ui/button'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import { Badge } from '@/components/ui/badge'; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from '@/components/ui/alert-dialog'; import { Bookmark, BookmarkType } from '@opchan/core'; import { Trash2, Bookmark as BookmarkIcon, FileText, MessageSquare, } from 'lucide-react'; import { useAuth, useContent } from '@/hooks'; const BookmarksPage = () => { const { currentUser } = useAuth(); const navigate = useNavigate(); const { bookmarks, removeBookmark, clearAllBookmarks } = useContent(); const [activeTab, setActiveTab] = useState<'all' | 'posts' | 'comments'>( 'all' ); // Redirect to login if not authenticated if (!currentUser) { return (
Please connect your wallet to view your bookmarks.
Your saved posts and comments. Bookmarks are stored locally and won't be shared.