def get_page_by_uid(uid, pages):
    """
    Get a page by its UID

    Args:
        uid (str): The page UID to search for
        pages (list of dict): list of pages

    Returns:
         dict: The matching page if any
    """
    page_info = [page for page in pages if page["uid"] == uid]
    if page_info:
        return page_info[0]