This commit is contained in:
dzc committed 2024-11-12 04:33:34 +08:00
1 parent 7d450caf77
commit 983674cfc9
29 files changed
+913 -49

No files matched your search

+11
View File
@@ -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];
};