wrapped proxy calls via useWidgetAPI

This commit is contained in:
Ben Phelps committed 2022-09-27 22:59:14 +03:00
1 parent 649f0038bc
commit 0a58f259ff
30 files changed
+115 -153

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import useSWR from "swr";
import { formatProxyUrl } from "./api-helpers";
export default function useWidgetAPI(widget, ...options) {
return useSWR(formatProxyUrl(widget, ...options));
}