import { cache } from "react" import { getPokemon } from "@/registry/new-york/complex-component/lib/pokemon" import { Card, CardContent } from "@/components/ui/card" import { PokemonImage } from "@/registry/new-york/complex-component/components/pokemon-image" const cachedGetPokemon = cache(getPokemon) export async function PokemonCard({ name }: { name: string }) { const pokemon = await cachedGetPokemon(name) if (!pokemon) { return null } return (
{pokemon.name}
) }