import React from 'react'; import './dashboard.css'; const RetailerFeedbackPage = () => { const feedbackStats = [ { label: 'Total Feedback', value: '142', change: '+8%' }, { label: 'Average Rating', value: '4.2/5', change: '+0.1' }, { label: 'Positive Feedback', value: '87%', change: '+3%' }, { label: 'Response Rate', value: '92%', change: '+2%' }, ]; const recentFeedback = [ { id: 'FB-1056', retailer: 'Tech Haven', rating: 5, comment: 'Excellent service and fast response times!', date: '2023-05-15', status: 'Responded' }, { id: 'FB-1055', retailer: 'Digital World', rating: 4, comment: 'Good products but delivery could be faster', date: '2023-05-14', status: 'Pending' }, { id: 'FB-1054', retailer: 'Software Plus', rating: 3, comment: 'Had some issues with license activation', date: '2023-05-13', status: 'In Progress' }, { id: 'FB-1053', retailer: 'CompuZone', rating: 5, comment: 'Best software distributor we work with', date: '2023-05-12', status: 'Responded' }, ]; const ratingDistribution = [ { stars: 5, count: 85, percent: 60 }, { stars: 4, count: 32, percent: 22 }, { stars: 3, count: 15, percent: 10 }, { stars: 2, count: 6, percent: 4 }, { stars: 1, count: 4, percent: 3 }, ]; return (

Retailer Feedback Management

{feedbackStats.map((stat, index) => (
{stat.value}
{stat.label}
{stat.change} from last month
))}

Recent Feedback

{recentFeedback.map((feedback, index) => ( ))}
Feedback ID Retailer Rating Comment Date Status Actions
{feedback.id} {feedback.retailer}
{[...Array(5)].map((_, i) => ( ))}
{feedback.comment} {feedback.date} {feedback.status} {feedback.status !== 'Responded' && ( )}

Rating Distribution

{ratingDistribution.map((item, index) => (
{[...Array(item.stars)].map((_, i) => ( ))} {item.count} ({item.percent}%)
))}

Feedback Response

{/* This would be replaced with an actual chart component */}
[Response Time and Satisfaction Chart]
92%
Response Rate
6.2h
Avg. Response Time
87%
Satisfaction After Response
); }; export default RetailerFeedbackPage;