import { ChevronRightIcon } from "@heroicons/react/24/outline"; import { WalletError } from "@solana/wallet-adapter-base"; import clsx from "clsx"; import { LazyMotion, m, domAnimation } from "framer-motion"; import { useCallback, useMemo, useState } from "react"; import { Button } from "react-aria-components"; export const ErrorMessage = ({ error }: { error: unknown }) => { return error instanceof WalletError ? (
The transaction was rejected by your wallet. Please check your wallet and try again.
) : (