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
|
|
|
|
|
|
|
export const useChallengeActions = () => useAppSelector((state) => state.challengeActions)
|
2024-12-12 21:55:59 +00:00
|
|
|
export const useDownloadChallengeActions = () => {
|
|
|
|
const dispath = useAppDispatch()
|
|
|
|
return (challengesData: ChallengeActionsPayload) => dispath(downloadChallengeActions(challengesData))
|
|
|
|
}
|