28 lines
819 B
Kotlin
28 lines
819 B
Kotlin
package dev.beefers.vendetta.manager.ui.components.settings
|
|
|
|
import androidx.compose.foundation.layout.Box
|
|
import androidx.compose.foundation.layout.fillMaxWidth
|
|
import androidx.compose.foundation.layout.heightIn
|
|
import androidx.compose.foundation.layout.padding
|
|
import androidx.compose.material3.Button
|
|
import androidx.compose.material3.Text
|
|
import androidx.compose.runtime.Composable
|
|
import androidx.compose.ui.Modifier
|
|
import androidx.compose.ui.unit.dp
|
|
|
|
@Composable
|
|
fun SettingsButton(
|
|
label: String,
|
|
onClick: () -> Unit = {}
|
|
) {
|
|
Box(
|
|
modifier = Modifier
|
|
.heightIn(min = 64.dp)
|
|
.fillMaxWidth()
|
|
.padding(horizontal = 18.dp, vertical = 14.dp)
|
|
) {
|
|
Button(onClick, modifier = Modifier.fillMaxWidth()) {
|
|
Text(text = label)
|
|
}
|
|
}
|
|
} |