File size: 583 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import { CardExample } from '~/components/Cards/CardExample'
import { SANDBOXES } from '~/data/sandboxes'
import { useCSB } from '~/hooks/useCSB'
import { exampleGridRoot } from './ExampleGrid.css'
interface ExampleGridProps {
sandboxTitles: Array<keyof typeof SANDBOXES>
}
export const ExampleGrid = ({ sandboxTitles }: ExampleGridProps) => {
const sandboxes = useCSB(sandboxTitles)
return (
<ul className={exampleGridRoot}>
{sandboxes.map(sandbox => (
<li key={sandbox.id}>
<CardExample {...sandbox} />
</li>
))}
</ul>
)
}
|