diff --git a/projects/dex-ui/src/components/ActionWalletButtonWrapper.tsx b/projects/dex-ui/src/components/ActionWalletButtonWrapper.tsx new file mode 100644 index 0000000000..ee2ca89e69 --- /dev/null +++ b/projects/dex-ui/src/components/ActionWalletButtonWrapper.tsx @@ -0,0 +1,20 @@ +import React from "react"; +import { ConnectKitButton } from "connectkit"; +import { Button } from "src/components/Swap/Button"; +import { useAccount } from "wagmi"; + +type ActionWalletButtonProps = { children: JSX.Element }; + +export const ActionWalletButtonWrapper = ({ children }: ActionWalletButtonProps) => { + const { address } = useAccount(); + + return !address ? ( + + {({ show }) => { + return