package dev.adriankuta.visualizer.components

import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.width
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

/**
 * Simple control row with Start/Stop buttons for the visualizer.
 *
 * @param onStart Invoked when the Start button is pressed.
 * @param onStop Invoked when the Stop button is pressed.
 * @param modifier Compose modifier for layout.
 */
@Composable
fun ControlButtons(
    onStart: () -> Unit,
    onStop: () -> Unit,
    modifier: Modifier = Modifier,
) {
    Row(modifier = modifier) {
        Button(onClick = onStart) { Text("Start") }
        Spacer(Modifier.width(8.dp))
        Button(onClick = onStop) { Text("Stop") }
    }
}
