def _get_page_links(page_numbers, current):
    """
    Given a list of page numbers and `None` page breaks,
    return a list of `PageLink` objects.
    """
    page_links = []
    for page_number in page_numbers:
        if page_number is None:
            page_link = {
                'number': None,
                'is_active': False,
                'is_break': True,
            }
        else:
            page_link = {
                'number': page_number,
                'is_active': (page_number == current),
                'is_break': False,
            }
        page_links.append(page_link)
    return page_links