move sdk packages to its own folder and rename api & dashboard
This commit is contained in:
7
apps/dashboard/src/hooks/useMappings.ts
Normal file
7
apps/dashboard/src/hooks/useMappings.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import mappings from '@/mappings.json';
|
||||
|
||||
export function useMappings() {
|
||||
return (val: string | null) => {
|
||||
return mappings.find((item) => item.id === val)?.name ?? val;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user