"use client"; import Link from "next/link"; import { useWallet } from "@/contexts/WalletContext"; import { useAccount } from "@/contexts/AccountContext"; import { isMerchantBtcConfigured } from "@/lib/merchantBtc"; type DepositWidgetProps = { compact?: boolean; }; export default function DepositWidget({ compact = false }: DepositWidgetProps) { const { usdStoreCredit, luxCredits } = useWallet(); const { user } = useAccount(); const btcReady = isMerchantBtcConfigured(); if (compact) { return (
Sign in to link deposits to your handle.
)} {!btcReady && (
Operator: set NEXT_PUBLIC_MERCHANT_BTC_ADDRESS in .env.local to enable deposits.