package mg.dot.feufaro.ui

import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.VerticalScrollbar
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.rememberScrollbarAdapter
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color

@Composable
actual fun MyVerticalScrollbar (
    scrollState: ScrollState,
    modifier: Modifier,
    content: @Composable () -> Unit,
) {
    Box ( modifier = Modifier.fillMaxSize()){
        VerticalScrollbar(
            adapter = rememberScrollbarAdapter(scrollState = scrollState),
            modifier = modifier.fillMaxHeight(0.5f).background(Color.Green)
        )
        //content()
    }
}
