package com.placeholder.sherpai2.ui.search.components

import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import coil.compose.rememberAsyncImagePainter
import com.placeholder.sherpai2.data.local.entity.ImageEntity

/**
 * ImageGridItem
 *
 * Minimal thumbnail preview.
 * No click handling yet.
 */
@Composable
fun ImageGridItem(
    image: ImageEntity,
    modifier: Modifier = Modifier,
    onClick: (() -> Unit)? = null
) {
    Image(
        painter = rememberAsyncImagePainter(image.imageUri),
        contentDescription = null,
        modifier = Modifier
            .fillMaxWidth()
            .aspectRatio(1f)
    )
}
