GraphQL API Pagination in React app

I have a react app.

Table.tsx

 const { data, loading, error } = useQuery(REACT_REPOS, {
    variables: {
      search_term: "topic:react sort:stars-desc",
    },
  })

queries.tsx

export const REACT_REPOS = gql`
  query($search_term: String!) {
    search(query: $search_term, type: REPOSITORY, first: 10) {
      edges {
        node {
          ... on Repository {
            id
            name
            stargazerCount
            forkCount
          }
        }
      }
    }
  }
`

I have this query and I want to show the next 10 data and I need pagination.
I have two buttons for the next and previous datas.
How can I implement this in my app?