Calculates the current page number.

  • Parameters

    • state: PaginationSection

      SearchPageState.

    Returns number

    the current page number.