diff --git a/src/components/rewards/RewardCard.tsx b/src/components/rewards/RewardCard.tsx new file mode 100644 index 0000000000..402ba807ac --- /dev/null +++ b/src/components/rewards/RewardCard.tsx @@ -0,0 +1,54 @@ +import { cn } from "@/lib/cssUtils"; +import { QuestionMark } from "@phosphor-icons/react/dist/ssr"; +import type { PropsWithChildren, ReactNode } from "react"; +import { Button, type ButtonProps } from "../ui/Button"; +import { Card } from "../ui/Card"; + +export const RewardCard = ({ + image, + title, + description, + className, + children, +}: PropsWithChildren<{ + image?: ReactNode | string; + title: string; + description?: string; + className?: string; +}>) => ( + + + + {!image ? ( + + ) : typeof image === "string" ? ( + + ) : ( + image + )} + + + + {title} + + + {description && ( + {description} + )} + + {children} + +); + +export const RewardCardButton = ({ + className, + ...props +}: Omit) => ( + +); diff --git a/src/stories/rewards/RewardCard.stories.tsx b/src/stories/rewards/RewardCard.stories.tsx new file mode 100644 index 0000000000..1cec2709db --- /dev/null +++ b/src/stories/rewards/RewardCard.stories.tsx @@ -0,0 +1,31 @@ +import { RewardCard, RewardCardButton } from "@/components/rewards/RewardCard"; +import { TooltipProvider } from "@/components/ui/Tooltip"; +import type { Meta, StoryObj } from "@storybook/react"; + +const RewardCardExample = () => ( + + + Reward card button + + +); + +const meta: Meta = { + title: "Rewards/RewardCard", + component: RewardCardExample, + decorators: (Story) => ( + + + + ), +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {};