mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-25 02:20:24 +00:00
17 lines
566 B
TypeScript
17 lines
566 B
TypeScript
|
import { SetCurrentToAction, SetCurrentValueAction } from '../actionTypes/current';
|
||
|
import { TypeKeys } from '../';
|
||
|
|
||
|
type TSetCurrentValue = typeof setCurrentValue;
|
||
|
const setCurrentValue = (payload: SetCurrentValueAction['payload']): SetCurrentValueAction => ({
|
||
|
type: TypeKeys.CURRENT_VALUE_SET,
|
||
|
payload
|
||
|
});
|
||
|
|
||
|
type TSetCurrentTo = typeof setCurrentTo;
|
||
|
const setCurrentTo = (payload: SetCurrentToAction['payload']): SetCurrentToAction => ({
|
||
|
type: TypeKeys.CURRENT_TO_SET,
|
||
|
payload
|
||
|
});
|
||
|
|
||
|
export { setCurrentValue, setCurrentTo, TSetCurrentTo, TSetCurrentValue };
|