//
//  ContentView.swift
//  SodaLive
//
//  Created by klaus on 2023/08/09.
//

import SwiftUI

struct ContentView: View {
    @StateObject private var appState = AppState.shared
    
    var body: some View {
        ZStack {
            Color.black.ignoresSafeArea()
            
            MainView()
            
            switch appState.appStep {
            case .splash:
                SplashView()
                
            case .signUp:
                SignUpView()
                
            case .findPassword:
                FindPasswordView()
                
            default:
                EmptyView()
                    .frame(width: 0, height: 0, alignment: .topLeading)
            }
        }
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}