package com.pixelized.biblib.ui.screen.home.common.item

import androidx.compose.runtime.Immutable
import androidx.compose.runtime.Stable
import androidx.compose.ui.tooling.preview.PreviewParameterProvider

@Stable
@Immutable
data class BookThumbnailUio(
    val id: Int,
    val title: String,
    val series: String?,
    val genre: String?,
    val author: String?,
    val language: String?,
    val date: String?,
    val isNew: Boolean,
    val thumbnail: String,
    val cover: String,
)

class BookThumbnailPreviewProvider : PreviewParameterProvider<BookThumbnailUio?> {
    override val values: Sequence<BookThumbnailUio?> = sequenceOf(
        BookThumbnailUio(
            id = 0,
            title = "Foundation",
            series = "Foundation - 1",
            genre = "Sci-Fi",
            author = "Asimov",
            language = "Français",
            date = "1951",
            isNew = true,
            thumbnail = "",
            cover = "",
        ),
        null
    )
}