35 lines
980 B
Kotlin
35 lines
980 B
Kotlin
|
|
package eu.kanade.presentation.updates
|
||
|
|
|
||
|
|
import androidx.compose.material3.AlertDialog
|
||
|
|
import androidx.compose.material3.Text
|
||
|
|
import androidx.compose.material3.TextButton
|
||
|
|
import androidx.compose.runtime.Composable
|
||
|
|
import androidx.compose.ui.res.stringResource
|
||
|
|
import eu.kanade.tachiyomi.R
|
||
|
|
|
||
|
|
@Composable
|
||
|
|
fun UpdatesDeleteConfirmationDialog(
|
||
|
|
onDismissRequest: () -> Unit,
|
||
|
|
onConfirm: () -> Unit,
|
||
|
|
) {
|
||
|
|
AlertDialog(
|
||
|
|
text = {
|
||
|
|
Text(text = stringResource(R.string.confirm_delete_chapters))
|
||
|
|
},
|
||
|
|
onDismissRequest = onDismissRequest,
|
||
|
|
confirmButton = {
|
||
|
|
TextButton(onClick = {
|
||
|
|
onConfirm()
|
||
|
|
onDismissRequest()
|
||
|
|
},) {
|
||
|
|
Text(text = stringResource(android.R.string.ok))
|
||
|
|
}
|
||
|
|
},
|
||
|
|
dismissButton = {
|
||
|
|
TextButton(onClick = onDismissRequest) {
|
||
|
|
Text(text = stringResource(android.R.string.cancel))
|
||
|
|
}
|
||
|
|
},
|
||
|
|
)
|
||
|
|
}
|