@@ -16,6 +16,8 @@ import { ApiError } from "@/services/apiClient";
1616import { getArtworkDetail , getMyArtworkDetail } from "@/services/artworks" ;
1717import { useAuthStore } from "@/stores/useAuthStore" ;
1818import { normalizeImageUrl } from "@/utils/normalizeImageUrl" ;
19+ import BottomActionButton from "@/components/common/BottomActionButton" ;
20+ import ArchiveTypeBadge from "@/components/common/ArchiveTypeBadge" ;
1921
2022function formatDate ( date : string | null ) {
2123 if ( ! date ) return "-" ;
@@ -120,9 +122,7 @@ export default function ArtDetailPage() {
120122 < >
121123 < ImageSwiper images = { artworkImages } altPrefix = "작품 이미지" />
122124 < div className = "text-text-primary flex flex-col gap-1.5 px-5 py-6" >
123- < div className = "text-caption bg-object-secondary-light h-6 w-fit min-w-14 rounded-sm px-1.5 py-1 font-medium" >
124- { artwork . artworkType }
125- </ div >
125+ < ArchiveTypeBadge type = { artwork . artworkType } />
126126 < div className = "text-title-3 font-semibold" > { artwork . title } </ div >
127127
128128 < RegionText regions = { artwork . availableRegions } />
@@ -165,23 +165,13 @@ export default function ArtDetailPage() {
165165 ) }
166166 </ div >
167167
168- < div className = "border-border-primary bg-bg-primary fixed right-0 bottom-0 left-0 z-50 border-t px-5 pt-3 pb-9" >
169- { inquiryErrorMessage && (
170- < p
171- role = "alert"
172- className = "text-caption text-error-default mx-auto mb-2 max-w-[430px]"
173- >
174- { inquiryErrorMessage }
175- </ p >
176- ) }
177- < button
178- onClick = { handleInquiryClick }
179- disabled = { createChatRoom . isPending }
180- className = "bg-object-primary text-body-1 text-text-invert flex h-12.5 w-full items-center justify-center rounded-lg font-medium disabled:opacity-50"
181- >
182- { createChatRoom . isPending ? "이동 중..." : "전시 문의하기" }
183- </ button >
184- </ div >
168+ < BottomActionButton
169+ text = "전시 문의하기"
170+ loadingText = "이동 중..."
171+ isPending = { createChatRoom . isPending }
172+ errorMessage = { inquiryErrorMessage }
173+ onClick = { handleInquiryClick }
174+ />
185175 </ >
186176 ) }
187177 </ div >
0 commit comments