29 lines
795 B
TypeScript
29 lines
795 B
TypeScript
"use server";
|
|
//https://github.com/vercel/next.js/discussions/63862
|
|
import React from "react";
|
|
import { Card, CardHeader, CardTitle } from "@/components/ui/card";
|
|
import { ChunithmGameVersionSelection } from "./gameSelection";
|
|
import { getAllGameVersionsChuni } from "./actions";
|
|
|
|
const getAllGamesChunithm = async () => {
|
|
const gameVersions = await getAllGameVersionsChuni();
|
|
return { gameVersions };
|
|
};
|
|
|
|
const Page = async () => {
|
|
const AllChunithmVersions = await getAllGamesChunithm();
|
|
|
|
return (
|
|
<Card x-chunk="gameverion">
|
|
<CardHeader>
|
|
<CardTitle className="text-2xl">Update Game Versions</CardTitle>
|
|
</CardHeader>
|
|
<ChunithmGameVersionSelection
|
|
chunithmGameVersionNumber={AllChunithmVersions}
|
|
/>
|
|
</Card>
|
|
);
|
|
};
|
|
|
|
export default Page;
|