-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpage.tsx
More file actions
31 lines (27 loc) · 1.11 KB
/
page.tsx
File metadata and controls
31 lines (27 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { getMyBodyInfoAction } from '@/app/actions/body-info';
import { BodyInfoModal } from '@/components/ui/body-info-modal';
import { BodyInfoFormWrapper } from './_components/wrapper';
import { CloseButton } from '@/components/ui/close-button';
// 사이즈 탭에서 '내 신체 정보 수정' 클릭 시 나타나는 인터셉트 모달 페이지
export default async function InterceptedBodyInfoPage() {
const result = await getMyBodyInfoAction();
const userInfo =
result.success && result.data?.hasBodyInfo ? result.data : null;
return (
<BodyInfoModal>
<div className="flex h-full flex-col overflow-hidden bg-white">
{/* 1. 상단 헤더 영역 */}
<div className="flex h-16 items-center gap-6 px-5">
<CloseButton />
<span className="flex-1 pr-10 text-center text-2xl leading-4 font-semibold">
내 체형 정보 수정
</span>
</div>
{/* 2. 컨텐츠 영역 */}
<div className="flex-1 overflow-hidden pt-8">
<BodyInfoFormWrapper userInfo={userInfo} />
</div>
</div>
</BodyInfoModal>
);
}