feat(creator): 최신 오디오 섹션을 연결한다

This commit is contained in:
Yu Sung
2026-07-03 03:34:36 +09:00
parent 0e358d73c3
commit f514a7ac40
7 changed files with 235 additions and 4 deletions

View File

@@ -4,15 +4,18 @@ struct CreatorChannelHomeView: View {
let response: CreatorChannelHomeResponse
let onSelectTab: (CreatorChannelTab) -> Void
let onTapLive: (Int) -> Void
let onTapContent: (Int) -> Void
init(
response: CreatorChannelHomeResponse,
onSelectTab: @escaping (CreatorChannelTab) -> Void,
onTapLive: @escaping (Int) -> Void = { _ in }
onTapLive: @escaping (Int) -> Void = { _ in },
onTapContent: @escaping (Int) -> Void = { _ in }
) {
self.response = response
self.onSelectTab = onSelectTab
self.onTapLive = onTapLive
self.onTapContent = onTapContent
}
var body: some View {
@@ -21,6 +24,11 @@ struct CreatorChannelHomeView: View {
currentLive: response.currentLive,
onTapLive: onTapLive
)
CreatorChannelLatestAudioSection(
latestAudioContent: response.latestAudioContent,
onTapContent: onTapContent
)
}
.frame(maxWidth: .infinity, alignment: .leading)
.background(Color.black)