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" ? ( + Reward icon + ) : ( + image + )} +
+ + + {title} + + + {description && ( + {description} + )} +
+ {children} +
+); + +export const RewardCardButton = ({ + className, + ...props +}: Omit) => ( +