mirror of
https://github.com/StepanovPlaton/torrent_frontend.git
synced 2026-04-03 20:30:48 +04:00
23 lines
588 B
TypeScript
23 lines
588 B
TypeScript
import { GameService } from "@/entities/game";
|
|
import { GameCard } from "@/features/gameCard";
|
|
import { Section } from "@/widgets/section";
|
|
|
|
export default async function Home() {
|
|
const gameCards = await GameService.getGameCards();
|
|
return (
|
|
<>
|
|
{gameCards && gameCards.length > 0 && (
|
|
<Section
|
|
name="Игры"
|
|
link="/games"
|
|
invite_text={'Перейти в раздел "Игры"'}
|
|
>
|
|
{gameCards.map((card) => (
|
|
<GameCard key={card.id} card={card} />
|
|
))}
|
|
</Section>
|
|
)}
|
|
</>
|
|
);
|
|
}
|