(props: unknown)
| 2 | import { z } from "zod" |
| 3 | |
| 4 | export function Examples(props: unknown) { |
| 5 | const { blocks, title, children } = parseProps( |
| 6 | props, |
| 7 | Block.extend({ |
| 8 | blocks: z.array( |
| 9 | Block.extend({ |
| 10 | repo: ImageBlock, |
| 11 | img: ImageBlock, |
| 12 | }), |
| 13 | ), |
| 14 | }), |
| 15 | ) |
| 16 | return ( |
| 17 | <section className=""> |
| 18 | <h2 className="">{title}</h2> |
| 19 | <div className="">{children}</div> |
| 20 | <div className="flex flex-wrap gap-4"> |
| 21 | {blocks.map((example) => ( |
| 22 | <a |
| 23 | className="min-w-80 w-80 border border-secondary rounded bg-secondary/50 overflow-hidden cursor-pointer hover:border-primary/50 hover:opacity-100 transition-colors no-underline" |
| 24 | key={example.title} |
| 25 | href={example.repo.url} |
| 26 | target="_blank" |
| 27 | rel="noopener" |
| 28 | > |
| 29 | <img src={example.img.url} alt={example.title} className="m-0" /> |
| 30 | <h3 className="m-3 text-lg">{example.title}</h3> |
| 31 | </a> |
| 32 | ))} |
| 33 | </div> |
| 34 | </section> |
| 35 | ) |
| 36 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…