import { cache } from "react" import { PokemonCard } from "@/registry/new-york/complex-component/components/pokemon-card" import { getPokemonList } from "@/registry/new-york/complex-component/lib/pokemon" const getCachedPokemonList = cache(getPokemonList) export default async function Page() { const pokemons = await getCachedPokemonList({ limit: 12 }) if (!pokemons) { return null } return (
{pokemons.results.map((p) => ( ))}
) }