feat(creator): 대화하기 액션을 연결한다
This commit is contained in:
@@ -3,6 +3,7 @@ import Kingfisher
|
||||
|
||||
struct CreatorChannelHeaderSection: View {
|
||||
let creator: CreatorChannelCreatorResponse
|
||||
let onTapTalk: () -> Void
|
||||
|
||||
var body: some View {
|
||||
ZStack(alignment: .bottom) {
|
||||
@@ -49,7 +50,10 @@ struct CreatorChannelHeaderSection: View {
|
||||
.foregroundColor(.white)
|
||||
.multilineTextAlignment(.center)
|
||||
|
||||
talkButton
|
||||
CreatorChannelTalkActionSection(
|
||||
isAiChatAvailable: creator.isAiChatAvailable,
|
||||
onTapTalk: onTapTalk
|
||||
)
|
||||
}
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding(.horizontal, SodaSpacing.s24)
|
||||
@@ -57,24 +61,4 @@ struct CreatorChannelHeaderSection: View {
|
||||
}
|
||||
.frame(width: screenSize().width, height: screenSize().width)
|
||||
}
|
||||
|
||||
private var talkButton: some View {
|
||||
Button(action: {}) {
|
||||
HStack(spacing: SodaSpacing.s6) {
|
||||
Image("ic_new_talk")
|
||||
.resizable()
|
||||
.frame(width: 20, height: 20)
|
||||
|
||||
Text(I18n.CreatorChannelHome.talk)
|
||||
.appFont(size: 16, weight: .medium)
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
.padding(SodaSpacing.s12)
|
||||
.overlay(
|
||||
Capsule()
|
||||
.stroke(Color.white.opacity(0.3), lineWidth: 1)
|
||||
)
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user