import type { Meta, StoryObj } from "@storybook/react";
import { WeeklyReportEmail } from "../src/emails/reports/WeeklyReportEmail";

const meta: Meta<typeof WeeklyReportEmail> = {
  title: "Emails/Reports/Weekly Report Email",
  component: WeeklyReportEmail,
  parameters: {
    layout: "fullscreen",
  },
};

export default meta;
type Story = StoryObj<typeof WeeklyReportEmail>;

export const Default: Story = {
  args: {
    reportPeriod: {
      start: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
      end: new Date(),
    },
    totalDeposits: 125000,
    totalWithdrawals: 85000,
    activeUsers: 1250,
    newUsers: 180,
    totalRevenue: 40000,
    topGames: [
      { name: "Slot Adventure", players: 450 },
      { name: "Blackjack Pro", players: 320 },
      { name: "Roulette Master", players: 280 },
    ],
  },
};

export const HighActivity: Story = {
  args: {
    reportPeriod: {
      start: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
      end: new Date(),
    },
    totalDeposits: 350000,
    totalWithdrawals: 220000,
    activeUsers: 3200,
    newUsers: 450,
    totalRevenue: 130000,
    topGames: [
      { name: "Slot Adventure", players: 1250 },
      { name: "Blackjack Pro", players: 980 },
      { name: "Roulette Master", players: 720 },
      { name: "Poker Championship", players: 560 },
    ],
  },
};
