This commit is contained in:
2025-05-06 02:13:23 +08:00
commit 22baba9e7b
52 changed files with 13258 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
"use client"
/* eslint-disable @next/next/no-img-element */
import { usePokemonImage } from "@/registry/new-york/complex-component/hooks/use-pokemon"
export function PokemonImage({
name,
number,
}: {
name: string
number: number
}) {
const imageUrl = usePokemonImage(number)
if (!imageUrl) {
return null
}
return <img src={imageUrl} alt={name} />
}