36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
import type { Meta, StoryObj } from "@storybook/react";
|
|
import { RaffleEmail } from "../src/emails/promotional/RaffleEmail";
|
|
|
|
const meta: Meta<typeof RaffleEmail> = {
|
|
title: "Emails/Promotional/Raffle Email",
|
|
component: RaffleEmail,
|
|
parameters: {
|
|
layout: "fullscreen",
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof RaffleEmail>;
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
raffleName: "Mega Jackpot Raffle",
|
|
prizeAmount: 10000,
|
|
entryDeadline: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000),
|
|
drawDate: new Date(Date.now() + 10 * 24 * 60 * 60 * 1000),
|
|
entryLink: "https://example.com/enter-raffle",
|
|
participantName: "John Doe",
|
|
},
|
|
};
|
|
|
|
export const HighValueRaffle: Story = {
|
|
args: {
|
|
raffleName: "Ultimate Million Dollar Raffle",
|
|
prizeAmount: 1000000,
|
|
entryDeadline: new Date(Date.now() + 14 * 24 * 60 * 60 * 1000),
|
|
drawDate: new Date(Date.now() + 21 * 24 * 60 * 60 * 1000),
|
|
entryLink: "https://example.com/enter-raffle",
|
|
participantName: "Valued Member",
|
|
},
|
|
};
|