import styles from "./levelSummary.module.css"

import { 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>
  )
}
