// // CreatorCommunityNoPostsItemView.swift // SodaLive // // Created by klaus on 2023/12/14. // import SwiftUI struct CreatorCommunityNoPostsItemView: View { let onSuccess: () -> Void var body: some View { VStack(spacing: 10.3) { CreatorCommunityWriteItemView() Text(I18n.Explorer.postRegister) .appFont(size: 14.7, weight: .bold) .foregroundColor(Color(hex: "eeeeee")) Text(I18n.Explorer.postRegisterDescription) .appFont(size: 12, weight: .medium) .foregroundColor(Color(hex: "777777")) .fixedSize(horizontal: false, vertical: true) .multilineTextAlignment(.center) } .padding(.vertical, 16.7) .frame(maxWidth: .infinity) .background(Color(hex: "222222")) .cornerRadius(10.3) .contentShape(Rectangle()) .onTapGesture { AppState.shared.setAppStep(step: .creatorCommunityWrite(onSuccess: onSuccess)) } } } struct CreatorCommunityNoPostsItemView_Previews: PreviewProvider { static var previews: some View { CreatorCommunityNoPostsItemView {} } }