"use client"; import { useState } from "react"; import Image from "next/image"; type FilterTab = "All" | "Referrals" | "Deposits"; interface ActivityRow { user: string; friend: string; code: string; points: string; } const mockData: ActivityRow[] = [ { user: "0x44...9A21", friend: "0x88...1B2C", code: "REF-001", points: "+120" }, { user: "0x44...9A21", friend: "0x88...1B2C", code: "REF-001", points: "+120" }, { user: "0x44...9A21", friend: "0x88...1B2C", code: "REF-001", points: "+120" }, { user: "0x44...9A21", friend: "0x88...1B2C", code: "REF-001", points: "+120" }, { user: "0x44...9A21", friend: "0x88...1B2C", code: "REF-001", points: "+120" }, ]; export default function ActivityHistory() { const [activeTab, setActiveTab] = useState("All"); const [currentPage, setCurrentPage] = useState(1); const totalPages = 4; return (
{/* Top Section - Title and Filter Tabs */}

Activity History

{/* Filter Tabs */}
{/* Table Card */}
{/* Table Header Section */}

Activity History

Track all your points-earning activities

Refresh Last updated: 2 minutes ago
{/* Table */}
{/* Table Header */}
User
Friends
Code
Points
{/* Table Body */} {mockData.map((row, index) => (
{row.user}
{row.friend}
{row.code}
{row.points}
))}
{/* Pagination */}
{/* Previous Button */} {/* Page Numbers */}
{Array.from({ length: totalPages }, (_, i) => i + 1).map((page) => ( ))}
{/* Next Button */}
); }