27 lines
582 B
TypeScript
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>
|
|
)
|
|
}
|