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

const meta: Meta<typeof ReferralBonusEmail> = {
  title: "Emails/Promotional/Referral Bonus Email",
  component: ReferralBonusEmail,
  parameters: {
    layout: "fullscreen",
  },
};

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

export const Default: Story = {
  args: {
    referrerName: "John Doe",
    referralBonus: 50,
    referredBonus: 25,
    referralCode: "REF123456",
    referralLink: "https://example.com/refer",
    expirationDate: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000),
  },
};

export const PremiumReferral: Story = {
  args: {
    referrerName: "VIP Member",
    referralBonus: 100,
    referredBonus: 50,
    referralCode: "VIPREF789",
    referralLink: "https://example.com/refer",
    expirationDate: new Date(Date.now() + 60 * 24 * 60 * 60 * 1000),
  },
};
