mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 15:12:43 +08:00
25 lines
376 B
JavaScript
25 lines
376 B
JavaScript
import {
|
|
SET_CONTENT_SLOT,
|
|
RESET_CONTENT_SLOT,
|
|
OPEN_MENU,
|
|
CLOSE_MENU,
|
|
} from './constants';
|
|
|
|
export const setContentSlot = slot => ({
|
|
type: SET_CONTENT_SLOT,
|
|
slot,
|
|
});
|
|
|
|
export const resetContentSlot = () => ({
|
|
type: RESET_CONTENT_SLOT,
|
|
});
|
|
|
|
export const openMenu = id => ({
|
|
type: OPEN_MENU,
|
|
id,
|
|
});
|
|
|
|
export const closeMenu = () => ({
|
|
type: CLOSE_MENU,
|
|
});
|