feat(gift): 선물함 목록 컴포넌트를 추가한다

This commit is contained in:
Yu Sung
2026-10-08 12:32:46 +09:00
parent 9ee23677af
commit 104e6d93ad
3 changed files with 161 additions and 0 deletions
@@ -0,0 +1,30 @@
import SwiftUI
struct GiftBoxInfoBannerView: View {
let direction: GiftDirection
var body: some View {
VStack(alignment: .leading, spacing: SodaSpacing.s8) {
HStack(spacing: SodaSpacing.s6) {
Image(systemName: "info.circle")
.accessibilityHidden(true)
Text(direction == .received ? "배송지 입력 기간 안내" : "사서함을 통해 안전하게 전달됩니다")
.appFont(.body4)
}
.foregroundColor(.white)
Text(direction == .received
? "알림을 받은 날부터 7일 이내에 배송지를 입력해 주세요. 기한 내 입력하지 않으면 선물이 반송됩니다."
: "크리에이터 및 팬의 주소는 공개되지 않습니다. 선물은 소다라이브 사서함에 도착한 뒤 크리에이터에게 전달됩니다.")
.appFont(.caption3)
.foregroundColor(.gray500)
.fixedSize(horizontal: false, vertical: true)
}
.padding(SodaSpacing.s14)
.frame(maxWidth: .infinity, alignment: .leading)
.background(Color.gray900)
.clipShape(RoundedRectangle(cornerRadius: SodaRadius.r14))
.accessibilityElement(children: .combine)
.padding(.horizontal, SodaSpacing.s14)
}
}