package com.simplecleaner.app.bean

/**
 * 首页Tab配置Bean
 * @param icon Tab图标资源ID
 * @param tab Tab显示文本
 * @param showRedDot 是否显示红点
 * @param badgeCount 徽章数量（可选）
 * @param isEnabled 是否启用该Tab
 */
data class HomeTabUIBean(
    val icon: Int,
    val tab: String,
    val showRedDot: Boolean = false,
    val badgeCount: Int = 0,
    val isEnabled: Boolean = true
) {
    companion object {
        /**
         * 创建默认的Tab配置
         */
        fun createDefault(icon: Int, tab: String, showRedDot: Boolean = false): HomeTabUIBean {
            return HomeTabUIBean(
                icon = icon,
                tab = tab,
                showRedDot = showRedDot
            )
        }
    }
}