Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 9 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import toastType from "./toastType"; |
||
2 | |||
3 | const toastFunction = (toastRef, options = {}) => { |
||
4 | const toast = toastRef.current.toast; |
||
5 | const toastTypeConst = toastType(toast, options); |
||
6 | return toastTypeConst; |
||
7 | } |
||
8 | |||
9 | export default toastFunction; |