42 lines
1.5 KiB
Swift
42 lines
1.5 KiB
Swift
import SwiftUI
|
|
|
|
struct CreatorChannelFanTalkEmptyView: View {
|
|
let showsWriteButton: Bool
|
|
let onTapWrite: () -> Void
|
|
|
|
var body: some View {
|
|
VStack(spacing: SodaSpacing.s20) {
|
|
Text("아직 응원이 없습니다.\n처음으로 크리에이터를 응원해 보세요!")
|
|
.appFont(size: 16, weight: .medium)
|
|
.foregroundColor(Color.gray500)
|
|
.multilineTextAlignment(.center)
|
|
.lineSpacing(SodaSpacing.s4)
|
|
|
|
if showsWriteButton {
|
|
Button(action: onTapWrite) {
|
|
HStack(spacing: SodaSpacing.s6) {
|
|
Image("ic_plus_no_bg")
|
|
.resizable()
|
|
.renderingMode(.template)
|
|
.foregroundColor(.white)
|
|
.scaledToFit()
|
|
.frame(width: 20, height: 20)
|
|
|
|
Text("응원 남기기")
|
|
.appFont(size: 16, weight: .medium)
|
|
.foregroundColor(.white)
|
|
.lineLimit(1)
|
|
}
|
|
.padding(.horizontal, SodaSpacing.s20)
|
|
.frame(height: 44)
|
|
.background(Color.soda400)
|
|
.clipShape(Capsule())
|
|
}
|
|
.buttonStyle(.plain)
|
|
}
|
|
}
|
|
.frame(maxWidth: .infinity)
|
|
.padding(.vertical, 48)
|
|
}
|
|
}
|