feat(creator): 대화하기 액션을 연결한다

This commit is contained in:
Yu Sung
2026-07-03 18:13:04 +09:00
parent 3f24788c29
commit 37c34ae91e
13 changed files with 242 additions and 24 deletions

View File

@@ -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)
}
}