package de.softwareapp_hb.privateqrscanner

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import de.softwareapp_hb.privateqrscanner.ui.CleanScannerAppRoot
import de.softwareapp_hb.privateqrscanner.ui.theme.CleanScannerTheme

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val container = (application as CleanScannerApp).appContainer
        setContent {
            CleanScannerTheme {
                Surface(color = MaterialTheme.colorScheme.background) {
                    CleanScannerAppRoot(container)
                }
            }
        }
    }
}
