>
}
/>
{(
[
["unread", "未读"],
["all", "全部"],
] as const
).map(([key, label]) => (
))}
{tab === "unread" && unreadCount > 0 ? (
还有 {unreadCount} 条没看
) : null}
{error ? (
{error}
) : null}
{loading && rows.length === 0 ? (
) : rows.length === 0 ? (
}
title={tab === "unread" ? "没有未读通知" : "还没有通知"}
hint={
tab === "unread"
? "有人给你派活、或你关注的事情有进展时,会出现在这里。"
: "这里会留下所有历史通知,方便回头找。"
}
/>
) : (
{rows.map((n) => (
-
))}
)}
{hasMore ? (
) : rows.length > 0 && !hasMore ? (
没有更多了
) : null}