import { ArrowNarrowLeft, Block, BlockProps, Button, ButtonProps, mergeOverrides, useStyletron, } from "@mezo-org/mezo-clay" import React from "react" import { usePassportContext } from "../../../hooks/usePassportContext" import { getAddressExplorerUrl } from "../../../utils/address" import useDropdownStore, { DropdownView } from "../../../stores/dropdownStore" import { useWalletAccount } from "../../../hooks/useWalletAccount" const buttonStartEnhancerSize = 12 const commonButtonProps: Partial = { kind: "secondary", size: "small", shape: "pill", overrides: { BaseButton: { style: { flex: 1, }, }, StartEnhancer: { style: { stroke: "currentColor", }, }, }, } export default function AccountAddressActions(props: BlockProps) { const { overrides, ...restProps } = props const [, theme] = useStyletron() const { environment } = usePassportContext() const setDropdownView = useDropdownStore((state) => state.setView) const handleReceiveClick = () => setDropdownView(DropdownView.RECEIVE) const walletAccount = useWalletAccount() const blockExplorerUrl = getAddressExplorerUrl( walletAccount.accountAddress!, "mezo", environment === "testnet", ) return ( ) }