Files
web/components/Loyalty/Blocks/DynamicContent/OverviewTable/LargeTable/index.tsx
2024-06-05 13:42:22 +02:00

27 lines
582 B
TypeScript

import Image from "@/components/Image"
import { LargeTableProps } from "@/types/components/loyalty/blocks"
export default function LargeTable({ levels }: LargeTableProps) {
return (
<table>
<thead>
<th />
{levels.map((level) => {
console.log({ level })
return (
<th key={level.tier}>
<Image
src={level.icon}
alt={level.name}
width={140}
height={54}
/>
</th>
)
})}
</thead>
</table>
)
}