mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
move ui & assets to package directory
This commit is contained in:
6
hyperglass/ui/components/useConfig.js
Normal file
6
hyperglass/ui/components/useConfig.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { useMemo } from "react";
|
||||
import config from "~/frontend.json";
|
||||
|
||||
export default () => useMemo(() => config);
|
||||
|
||||
export const useConfig = cfg => useMemo(() => cfg);
|
Reference in New Issue
Block a user