/ ui / src / components / SmartWalletNotFoundToast.tsx
SmartWalletNotFoundToast.tsx
 1  import { signerTarget } from 'config';
 2  import { walletUiHrefAtom } from 'store/app';
 3  import { useAtomValue } from 'jotai';
 4  
 5  const SmartWalletNotFoundToast = () => {
 6    const walletUiHref = useAtomValue(walletUiHrefAtom);
 7  
 8    return (
 9      <p>
10        No Agoric smart wallet found for this address. Create one at{' '}
11        <a
12          className="underline text-blue-500"
13          href={walletUiHref}
14          target={signerTarget}
15        >
16          {walletUiHref}
17        </a>{' '}
18        then try again.
19      </p>
20    );
21  };
22  
23  export default SmartWalletNotFoundToast;