import { ChevronDown } from "react-feather" import Title from "@/components/TempDesignSystem/Text/Title" import { getHighestLevel } from "@/utils/loyaltyTable" import BenefitValue from "../BenefitValue" import DesktopHeader from "./DesktopHeader" import styles from "./largeTable.module.css" import { BenefitTableHeaderProps, LargeTableProps, } from "@/types/components/loyalty/blocks" export default function LargeTable({ levels, activeLevel, Select, }: LargeTableProps) { const highestLevel = getHighestLevel(levels) return ( {highestLevel?.benefits .filter((benefit) => benefit.unlocked) .map((benefit, index) => { return ( {levels.map((level, idx) => { return ( ) })} ) })}
) } function BenefitTableHeader({ name, description }: BenefitTableHeaderProps) { return (
{name}

) }