chains/src/components/ChainList.tsx
ligi 78c6e74dfb Squashed 'website/' content from commit 363240a
git-subtree-dir: website
git-subtree-split: 363240aff0185a5593cb828a19cd6dfaceb8bc6c
2023-01-17 16:07:59 +01:00

19 lines
403 B
TypeScript

import { SimpleGrid } from "@chakra-ui/react";
import React from "react";
import { ChainData } from "../types/chain";
import { Chain } from "./Chain";
export const ChainList = ({
chains,
}: {
chains: (ChainData & { id: string })[];
}) => (
<>
<SimpleGrid minChildWidth="300px" spacing={4}>
{chains.map((c) => (
<Chain key={c.id} {...c} />
))}
</SimpleGrid>
</>
);