@szmg-fe/tarco
Version:
function library in Taro
19 lines (16 loc) • 528 B
text/typescript
/*
* @Description: task开瓶器
* @Date: 2021-03-17 09:26:25
* @Author: Lemon
* @LastEditTime: 2021-04-21 14:12:45
*/
import showMessage from './showMessage';
import createAction from '@szmg-fe/funba/createAction';
import { compose } from '@szmg-fe/funba/ramda';
import prop from '@szmg-fe/funba/prop';
import id from '@szmg-fe/funba/id';
const createShowMessageAction = (key?: string) => {
const f = compose(showMessage, key ? prop(key) : id);
return createAction(f);
};
export default createShowMessageAction;