// Dashboard.js import React, { useState } from "react"; import { FaPlus } from "react-icons/fa"; import PollTableRow from "../components/PollTableRow/PollTableRow"; import { useNavigate } from "react-router-dom"; function Dashboard() { const navigator = useNavigate(); const pollData = [ { _id: "1", title: "Poll 1", description: "Description of Poll 1", totalVotes: 120, published: true }, { _id: "2", title: "Poll 2", description: "Description of Poll 2", totalVotes: 45, published: false }, // Add more poll data as needed ]; return (
{/* User Profile Sidebar */} {/* Dashboard Main Content */}
{/* Dashboard Header */}

Poll Dashboard

Manage your polls, view results, and edit as needed.

{/* Add New Poll Button */}
{/* Polls Table */}
{pollData.map((poll, index) => ( // Replace with actual path ))}
# Title Description Total Votes Published Actions
); } export default Dashboard;