2024-12-12 22:55:59 +01:00
|
|
|
import { ChallengeActionsPayload, downloadChallengeActions } from "@/utils/features/challengeActions/challengeActionsSlice"
|
|
|
|
import { useAppDispatch, useAppSelector } from "./useStore"
|
2024-12-11 17:26:36 +01:00
|
|
|
|
2024-12-14 00:27:30 +01:00
|
|
|
export const useChallengeActions = () => useAppSelector((state) => state.challengeActions.challengeActions)
|
2024-12-12 22:55:59 +01:00
|
|
|
export const useDownloadChallengeActions = () => {
|
|
|
|
const dispath = useAppDispatch()
|
|
|
|
return (challengesData: ChallengeActionsPayload) => dispath(downloadChallengeActions(challengesData))
|
|
|
|
}
|