package dev.ulfrx.recipe.ui.screens.shell.dock

import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.composables.icons.lucide.Lucide
import com.composables.icons.lucide.Search
import dev.ulfrx.recipe.ui.components.glass.CircleGlassButton
import dev.ulfrx.recipe.ui.theme.RecipeTheme
import org.jetbrains.compose.resources.stringResource
import recipe.composeapp.generated.resources.Res
import recipe.composeapp.generated.resources.search_open_a11y

/**
 * 63 dp circular Liquid-glass search button rendered in the dock's trailing
 * slot. Behaviour is delegated to [CircleGlassButton] — this file just locks
 * the icon, size, and a11y label for the search-affordance role.
 */
@Composable
fun FloatingSearchButton(
    modifier: Modifier = Modifier,
    onClick: () -> Unit = {},
) {
    CircleGlassButton(
        onClick = onClick,
        icon = Lucide.Search,
        contentDescription = stringResource(Res.string.search_open_a11y),
        modifier = modifier,
        size = 63.dp,
    )
}
