/*
 * Book's Story — free and open-source Material You eBook reader.
 * Copyright (C) 2024-2026 Acclorite
 * SPDX-License-Identifier: GPL-3.0-only
 */

package org.dueattendant149.bookshelf.presentation.browse.model

import androidx.compose.runtime.Immutable
import org.dueattendant149.bookshelf.core.CoverImage
import org.dueattendant149.bookshelf.core.ui.UIText
import org.dueattendant149.bookshelf.domain.model.library.Book

@Immutable
sealed class NullableBook {
    data class NotNull(
        val book: Book,
        val coverImage: CoverImage?
    ) : NullableBook()

    data class Null(
        val fileName: String,
        val message: UIText?
    ) : NullableBook()
}