feat(creator): 채널 후원 섹션을 연결한다

This commit is contained in:
Yu Sung
2026-07-03 11:45:53 +09:00
parent f514a7ac40
commit c136f5bbc3
6 changed files with 358 additions and 10 deletions

View File

@@ -5,17 +5,20 @@ struct CreatorChannelHomeView: View {
let onSelectTab: (CreatorChannelTab) -> Void
let onTapLive: (Int) -> Void
let onTapContent: (Int) -> Void
let onTapDonate: () -> Void
init(
response: CreatorChannelHomeResponse,
onSelectTab: @escaping (CreatorChannelTab) -> Void,
onTapLive: @escaping (Int) -> Void = { _ in },
onTapContent: @escaping (Int) -> Void = { _ in }
onTapContent: @escaping (Int) -> Void = { _ in },
onTapDonate: @escaping () -> Void = {}
) {
self.response = response
self.onSelectTab = onSelectTab
self.onTapLive = onTapLive
self.onTapContent = onTapContent
self.onTapDonate = onTapDonate
}
var body: some View {
@@ -29,6 +32,12 @@ struct CreatorChannelHomeView: View {
latestAudioContent: response.latestAudioContent,
onTapContent: onTapContent
)
CreatorChannelDonationSection(
channelDonations: response.channelDonations,
onSelectTab: onSelectTab,
onTapDonate: onTapDonate
)
}
.frame(maxWidth: .infinity, alignment: .leading)
.background(Color.black)