19 lines
459 B
TypeScript
19 lines
459 B
TypeScript
/**
|
|
* 컨텐츠 서버 페이지
|
|
*/
|
|
import { getCachedContentDetail } from "./contents-api";
|
|
import { ContentsPageClient } from "./contentsPageClient";
|
|
|
|
type ContentsPageProps = {
|
|
contsSn: number;
|
|
menuCd: string;
|
|
};
|
|
|
|
async function ContentsPage({ contsSn, menuCd }: ContentsPageProps) {
|
|
const initialContent = await getCachedContentDetail(contsSn, menuCd);
|
|
|
|
return <ContentsPageClient initialContent={initialContent} />;
|
|
}
|
|
|
|
export { ContentsPage };
|