From d24c9e8159bfb5f8ad6d56d5a2dddc0d1e43bdb6 Mon Sep 17 00:00:00 2001 From: Pete Watters <2938440+pete-watters@users.noreply.github.com> Date: Mon, 26 Aug 2024 09:47:03 +0100 Subject: [PATCH] fix: add config hook to disable brc-20 sends, ref leather-io/issues#5773 --- .../query/src/common/remote-config/remote-config.query.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/query/src/common/remote-config/remote-config.query.ts b/packages/query/src/common/remote-config/remote-config.query.ts index 973ea1358..a478f838d 100644 --- a/packages/query/src/common/remote-config/remote-config.query.ts +++ b/packages/query/src/common/remote-config/remote-config.query.ts @@ -120,3 +120,8 @@ export function useConfigSwapsEnabled() { const config = useRemoteConfig(); return get(config, 'swapsEnabled', false); } + +export function useBrc20SendEnabled() { + const config = useRemoteConfig(); + return get(config, 'brc20SendEnabled', false); +}