import React from 'react'; import { Box, Text, Link, HStack } from '../../primitives'; import data from '../../utils/ecosystem.json'; import type { EcosystemItem, DataKey } from '../../utils/ecosystem'; import NextImage from 'next/image'; export function Ecosystem({ values }: { values: Array }) { let keys = Object.keys(data) as Array; keys = keys.filter((element) => values.includes(element)); const cardsData = keys.map((key) => data[key]); return ( More from the creators Our Ecosystem Curated suite of tools to simplify and accelerate building of design systems. Learn more {cardsData.map((item: EcosystemItem, index: number) => { return ( ); })} ); } const Card = ({ item, mr }: { item: EcosystemItem; mr: any }) => { return ( {item.name} {item.tag && ( {item.tag && ( {item.tag} )} )} {item.ossTag && ( {item.ossTag && ( {item.ossTag} )} )} {item.description} ); };