Calculates the current pages relative to the current page.

  • Parameters

    • state: PaginationSection

      SearchPageState.

    • desiredNumberOfPages: number

      the number of pages to return.

    Returns number[]

    the current page numbers.