package com.example.tiptime

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.example.tiptime.ui.BmiCalculatorScreen
import com.example.tiptime.ui.theme.TipTimeTheme

/**
 * NPM: [ISI NPM ANDA]
 * Nama: [ISI NAMA ANDA]
 *
 * Activity utama untuk aplikasi BMI Calculator
 * Menggunakan Jetpack Compose untuk UI
 */
class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContent {
            AppRoot()
        }
    }
}

@Composable
fun AppRoot() {
    TipTimeTheme {
        Surface(
            modifier = Modifier.fillMaxSize(),
            color = MaterialTheme.colorScheme.background
        ) {
            BmiCalculatorScreen()
        }
    }
}