// // ChatQuotaNoticeItemView.swift // SodaLive // // Created by klaus on 9/2/25. // import SwiftUI struct ChatQuotaNoticeItemView: View { let remainingTime: String let purchase: () -> Void var body: some View { VStack(spacing: 10) { VStack(spacing: 8) { Image("ic_time") .resizable() .frame(width: 30, height: 30) Text(remainingTime) .appFont(size: 18, weight: .bold) .foregroundColor(.white) Text("기다리면 무료 이용이 가능합니다.") .appFont(size: 18, weight: .bold) .foregroundColor(.white) } .frame(maxWidth: .infinity) .padding(.vertical, 15) .background(Color(hex: "EC8280")) .cornerRadius(10) HStack(spacing: 4) { Image("ic_can") Text("10") .appFont(size: 24, weight: .bold) .foregroundColor(Color(hex: "263238")) Text("(채팅 12개) 바로 대화 시작") .appFont(size: 24, weight: .bold) .foregroundColor(Color(hex: "263238")) .padding(.leading, 4) } .frame(maxWidth: .infinity) .padding(.vertical, 12) .background(Color(hex: "B5E7FA")) .cornerRadius(30) .overlay { RoundedRectangle(cornerRadius: 30) .stroke(lineWidth: 1) .foregroundColor(Color.button) } .onTapGesture { purchase() } } } } #Preview { ChatQuotaNoticeItemView(remainingTime: "05:59:55") {} }