import Image from 'next/image' import React from 'react' import sponsors from '../data/sponsors.json' export default function Sponsors() { const tiers = [ { tier_name: '$5,000 a month', heading: 'Enterprise: $5,000 per month', transactions: sponsors.filter((x) => x.tier == '$5,000 a month'), }, { tier_name: '$2,500 a month', heading: 'Agency: $2,500 per month', transactions: sponsors.filter((x) => x.tier == '$2,500 a month'), }, { tier_name: '$1,000 a month', heading: 'Startup: $1,000 per month', transactions: sponsors.filter((x) => x.tier == '$1,000 a month'), }, { tier_name: '$49 a month', heading: 'Evangelist: $49 per month', transactions: sponsors.filter((x) => x.tier == '$49 a month'), }, { tier_name: '$19 a month', heading: 'Supporter: $19 per month', transactions: sponsors.filter((x) => x.tier == '$19 a month'), }, { tier_name: '$5 a month', heading: 'Contributor: $5 per month', transactions: sponsors.filter((x) => x.tier == '$5 a month'), }, ] return (
{tiers.map( (t, index) => !!t.transactions.length && (

{t.heading}

{t.transactions.map((x: any, index: any) => (
Sponsor
{x.sponsor}
))}

) )}
) }