111
This commit is contained in:
1 parent
7d450caf77
commit
983674cfc9
29 files changed
+913
-49
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { isEmpty } from "radash";
|
||||
|
||||
import { serviceEnum } from "../constant/index";
|
||||
|
||||
export const useEnum = (
|
||||
key: string | undefined,
|
||||
value: string | number | undefined
|
||||
) => {
|
||||
if (isEmpty(key) || isEmpty(value)) return "";
|
||||
return serviceEnum[key!][value];
|
||||
};
|
||||
Reference in new issue
Block a user