Files
web/components/Blocks/DynamicContent/OverviewTable/LevelSummary/index.tsx
2024-09-24 09:47:31 +02:00

18 lines
475 B
TypeScript

import styles from "./levelSummary.module.css"
import type { LevelSummaryProps } from "@/types/components/overviewTable"
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>
)
}