{"size": 1121, "ext": "js", "max_stars_repo_path": "packages/frontend/src/redux/slices/createFromImplicit/index.js", "max_stars_repo_name": "roshaans/near-wallet", "max_stars_repo_stars_event_min_datetime": "2019-01-29T23:36:26.000Z", "max_stars_repo_stars_event_max_datetime": "2020-04-08T08:47:46.000Z", "max_issues_repo_path": "packages/frontend/src/redux/slices/createFromImplicit/index.js", "max_issues_repo_name": "roshaans/near-wallet", "max_issues_repo_issues_event_min_datetime": "2019-02-07T23:45:40.000Z", "max_issues_repo_issues_event_max_datetime": "2020-04-29T22:14:31.000Z", "max_forks_repo_path": "packages/frontend/src/redux/slices/createFromImplicit/index.js", "max_forks_repo_name": "roshaans/near-wallet", "max_forks_repo_forks_event_min_datetime": "2019-03-08T22:28:39.000Z", "max_forks_repo_forks_event_max_datetime": "2020-04-18T05:34:58.000Z"}
{"max_stars_count": 16, "max_issues_count": 499, "max_forks_count": 10, "avg_line_length": 32.9705882353, "max_line_length": 155, "alphanum_fraction": 0.7430865299}
import { createSlice } from '@reduxjs/toolkit';
import { createSelector } from 'reselect';

const SLICE_NAME = 'createFromImplicit';

const initialState = {
    createFromImplicitSuccess: false,
    createCustomName: false
};

const createFromImplicitSlice = createSlice({
    name: SLICE_NAME,
    initialState,
    reducers: {
        setCreateFromImplicitSuccess: (state, action) => {
            state.createFromImplicitSuccess = action.payload;
        },
        setCreateCustomName: (state, action) => {
            state.createCustomName = action.payload;
        }
    }
});

export default createFromImplicitSlice;

export const actions = {
    ...createFromImplicitSlice.actions
};
export const reducer = createFromImplicitSlice.reducer;

const selectCreateFromImplicitSlice = (state) => state[createFromImplicitSlice.name];
export const selectCreateFromImplicitSuccess = createSelector(selectCreateFromImplicitSlice, ({ createFromImplicitSuccess }) => createFromImplicitSuccess);
export const selectCreateCustomName = createSelector(selectCreateFromImplicitSlice, ({ createCustomName }) => createCustomName);
