package com.pixelized.biblib.ui.composable

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.unit.Dp
import com.pixelized.biblib.utils.extention.bibLib

@Composable
fun Handle(
    modifier: Modifier = Modifier,
    width: Dp = MaterialTheme.bibLib.dimen.handle.width,
    thickness: Dp = MaterialTheme.bibLib.dimen.handle.thickness,
    color: Color = MaterialTheme.bibLib.colors.handle,
    shape: Shape = CircleShape
) = Box(
    modifier = modifier
        .size(width = width, height = thickness)
        .background(
            color = color,
            shape = shape,
        )
)