nextjs-test/app/unity/page.tsx

18 lines
409 B
TypeScript

import { Suspense } from "react";
import { frame, ohg, option } from "../constant";
import Unity from "./unity";
const getItem = async () => {
return await Promise.resolve({ option, ohg, frame });
};
export default async function UnityComponent() {
const { option, ohg, frame } = await getItem();
return (
<Suspense>
<Unity option={option} ohg={ohg} frame={frame} />
</Suspense>
);
}