package notification

import "hyapp-admin-server/internal/model"

func unreadCount(items []model.Notification) int {
	count := 0
	for _, item := range items {
		if item.ReadAtMS == nil {
			count++
		}
	}
	return count
}
