Refund Reporting Analytics - Copy this React, Tailwind Component to your project
Description Refund Reporting and Analytics As an admin, I want to access detailed reports on refunds and their impact on the affiliate program, So that I can monitor refund trends and make data driven decisions. Acceptance Criteria: 1. Given an admin navigates to the "Reports" tab, When they select "Refund Reports," Then the system should generate a report showing all refunds within a selected date range, including details like product, affiliate impacted, and reason for refund. 2. Given the admin wants to analyze refund trends, When they generate a refund report, Then the system should display metrics such as the total number of refunds, total value of refunds, and the percentage of total sales refunded. 3. Given the admin wants to assess the impact of refunds on affiliates, When they generate an affiliate performance report, Then the system should include a section detailing how refunds have affected each affiliate's total earnings. 4. Given the admin views refund analytics, When they analyze the data, Then the system should allow the admin to filter refunds by product category, affiliate occupation, or refund reason to identify potential areas of concern. 5. Given the admin wants to export refund data, When they view a refund report, Then the system should allow them to export the data in various formats (e.g., CSV, Excel, PDF) for further analysis.write entire code for this assingment use charts graphs for data dipslay use dummy data and add filetring based on the section and also add downlaod pdf and dwonload exel fromat fuctionalits use react forms packages for any forms for styling purpose use styled componnets and add react icons for error handling use react tostify and implnet this feauts only with fronted part use dummy data for dispaly accortding to the given discritption of the task write entire code in a file structure mannual B make downlaoding fuctionalits work and rewrite the entire correct code
