1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-19 17:38:05 +00:00
thatmattlove-hyperglass/ui/components/useConfig.js
checktheroads 0728965999 fix import
2020-01-17 02:50:57 -07:00

6 lines
169 B
JavaScript

import { useMemo } from "react";
import config from "~/frontend.json";
export default () => useMemo(() => config);
export const useConfig = cfg => useMemo(() => cfg);