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