
import {
    SET_INIT_DATA,
    SET_USER_INFO
} from "../actionType";

export const setInitData = (indexData: any) => {
    return {
        type: SET_INIT_DATA,
        data: indexData
    }
};

export const setUserInfo = (indexData: any) => {
    return {
        type: SET_USER_INFO,
        data: indexData
    }
};

// import { useDispatch } from 'react-redux';
//const dispatch = useDispatch();
//dispatch(saveIndexData())