31 lines
1.3 KiB
Swift
31 lines
1.3 KiB
Swift
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)
|
|
}
|
|
}
|