13 lines
415 B
TypeScript
13 lines
415 B
TypeScript
|
import { SetCurrentWindowStartAction } from '../actionTypes/windowStart';
|
||
|
import { TypeKeys } from 'actions/schedule';
|
||
|
|
||
|
type TSetCurrentWindowStart = typeof setCurrentWindowStart;
|
||
|
const setCurrentWindowStart = (
|
||
|
payload: SetCurrentWindowStartAction['payload']
|
||
|
): SetCurrentWindowStartAction => ({
|
||
|
type: TypeKeys.CURRENT_WINDOW_START_SET,
|
||
|
payload
|
||
|
});
|
||
|
|
||
|
export { setCurrentWindowStart, TSetCurrentWindowStart };
|