feat(SW-285): ship support for dynamic content

This commit is contained in:
Chuma McPhoy
2024-09-02 20:01:48 +02:00
parent e88e4d92bf
commit 1c2a34591b
35 changed files with 5125 additions and 0 deletions
@@ -0,0 +1,17 @@
import styles from "./levelSummary.module.css"
import type { LevelSummaryProps } from "@/types/components/loyalty/blocks"
export default function LevelSummary({
level,
showDescription = true,
}: LevelSummaryProps) {
return (
<div className={styles.levelSummary}>
<span className={styles.levelRequirements}>{level.requirement}</span>
{showDescription && (
<p className={styles.levelSummaryText}>{level.description}</p>
)}
</div>
)
}