// // HomeWeeklyChartView.swift // SodaLive // // Created by klaus on 7/12/25. // import SwiftUI struct HomeWeeklyChartView: View { @AppStorage("token") private var token: String = UserDefaults.string(forKey: UserDefaultsKey.token) let rows = [ GridItem(.fixed(60), spacing: 16, alignment: .leading), GridItem(.fixed(60), spacing: 16, alignment: .leading), GridItem(.fixed(60), spacing: 16, alignment: .leading), GridItem(.fixed(60), spacing: 16, alignment: .leading) ] let contentList: [GetAudioContentRankingItem] let onTapSort: (String) -> Void let sortList = ["매출", "판매량", "댓글", "좋아요"] @State private var selectedSort = "매출" var body: some View { VStack(spacing: 16) { HStack(spacing: 0) { Text("보온 주간 차트") .font(.custom(Font.preBold.rawValue, size: 24)) .foregroundColor(.white) Spacer() } .padding(.horizontal, 24) ContentMainContentThemeView( themeList: sortList, selectTheme: onTapSort, selectedTheme: $selectedSort ) ScrollView(.horizontal, showsIndicators: false) { LazyHGrid(rows: rows, spacing: 16) { ForEach(0..