feat(chat): 유저 크리에이터 DM을 추가한다
This commit is contained in:
@@ -2,10 +2,12 @@ import SwiftUI
|
||||
|
||||
struct CreatorChannelTalkActionSection: View {
|
||||
let isAiChatAvailable: Bool
|
||||
let isDmAvailable: Bool
|
||||
let onTapTalk: () -> Void
|
||||
let onTapDm: () -> Void
|
||||
|
||||
var body: some View {
|
||||
HStack {
|
||||
HStack(spacing: SodaSpacing.s8) {
|
||||
Spacer()
|
||||
|
||||
if isAiChatAvailable {
|
||||
@@ -28,6 +30,26 @@ struct CreatorChannelTalkActionSection: View {
|
||||
.buttonStyle(.plain)
|
||||
}
|
||||
|
||||
if isDmAvailable {
|
||||
Button(action: onTapDm) {
|
||||
HStack(spacing: SodaSpacing.s6) {
|
||||
Image("ic_new_talk")
|
||||
.resizable()
|
||||
.frame(width: 20, height: 20)
|
||||
|
||||
Text(I18n.CreatorChannelHome.dm)
|
||||
.appFont(size: 16, weight: .medium)
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
.padding(SodaSpacing.s12)
|
||||
.overlay(
|
||||
Capsule()
|
||||
.stroke(Color.white.opacity(0.3), lineWidth: 1)
|
||||
)
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
}
|
||||
.frame(height: 44)
|
||||
|
||||
Reference in New Issue
Block a user