package com.iscs.bozzys.ui.common

import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Icon
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.iscs.bozzys.R
import com.iscs.bozzys.ui.theme.Text

/**
 * 空数据
 */
@Composable
fun Empty(modifier: Modifier = Modifier,tips: String = "") {
    Column(modifier = modifier.fillMaxSize(), verticalArrangement = Arrangement.Center, horizontalAlignment = Alignment.CenterHorizontally) {
        Icon(painter = painterResource(R.drawable.empty), contentDescription = null, modifier = Modifier.size(72.dp), tint = Text.copy(alpha = 0.5f))
        Text(tips, color = Text.copy(alpha = 0.8f), fontSize = 14.sp)
    }
}