add LargeTable component
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user