<view class="favorites-page">
    <view class="favorites-page__title">我的收藏</view>

    <view class="favorites-page__tabs">
        <view
            class="favorites-page__tab {{activeTab === 'favorites' ? 'favorites-page__tab--active' : ''}}"
            data-tab="favorites"
            bindtap="onTabSwitch"
        >
            收藏的题型
        </view>
        <view
            class="favorites-page__tab {{activeTab === 'downloads' ? 'favorites-page__tab--active' : ''}}"
            data-tab="downloads"
            bindtap="onTabSwitch"
        >
            下载历史
        </view>
    </view>

    <view wx:if="{{activeTab === 'favorites' && favoriteList.length === 0}}" class="favorites-page__empty">
        <text class="favorites-page__emoji">🦆</text>
        <view class="favorites-page__empty-msg">
            <text class="favorites-page__empty-line">鸭丫还没找到收藏呢</text>
            <text class="favorites-page__empty-line">去发现好玩的练习纸吧~</text>
        </view>
        <button class="favorites-page__btn" bindtap="onDiscoverTap">去发现</button>
    </view>

    <view wx:elif="{{activeTab === 'downloads' && downloadList.length === 0}}" class="favorites-page__empty">
        <text class="favorites-page__emoji">🦆</text>
        <view class="favorites-page__empty-msg">
            <text class="favorites-page__empty-line">还没有下载记录哦</text>
            <text class="favorites-page__empty-line">快去生成练习纸吧~</text>
        </view>
        <button class="favorites-page__btn" bindtap="onDiscoverTap">去发现</button>
    </view>
</view>
