use route parameter in the Redux Saga file

How to pass current route parameters to the saga function?

enter image description here

// Saga
 function* findOneReleaseWithFilesSaga() {
   const { productName, releaseId } = useParams()
   try {
     const releaseResponse: AxiosResponse = yield call(findOneWithFiles, releaseId)
                                                       ^^^Error Here^^^
     yield put(getAllReleasesSuccessAction(releaseResponse))
   } catch (error) {
     yield put(getAllReleasesErrorAction(error))
   }
 }

// Fetch Data
 export const findOneWithFiles = async (releaseId:string) => {
   return await Api.get(`/releases/${releaseId}/?populate=data_files`)
     .then((res) => res.data.data)
     .catch((err) => err)
 }