Calculates the maximum page number

  • Parameters

    • state: PaginationSection

      SearchPageState.

    Returns number

    the maximum page number.