From 984e4ed1b518c76e1e2a65963d8b9d2e26d8fc5d Mon Sep 17 00:00:00 2001 From: Alec Chen <93971719+0xAlec@users.noreply.github.com> Date: Fri, 9 Aug 2024 09:39:10 -0700 Subject: [PATCH] types --- src/wallet/index.ts | 2 ++ src/wallet/types.ts | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/wallet/index.ts b/src/wallet/index.ts index 6063116126..eec4f9abea 100644 --- a/src/wallet/index.ts +++ b/src/wallet/index.ts @@ -4,6 +4,7 @@ export { Wallet } from './components/Wallet'; export { WalletDropdown } from './components/WalletDropdown'; export { WalletDropdownBaseName } from './components/WalletDropdownBaseName'; export { WalletDropdownDisconnect } from './components/WalletDropdownDisconnect'; +export { WalletDropdownFundLink } from './components/WalletDropdownFundLink'; export { WalletDropdownLink } from './components/WalletDropdownLink'; export { isValidAAEntrypoint } from './utils/isValidAAEntrypoint'; export { isWalletACoinbaseSmartWallet } from './utils/isWalletACoinbaseSmartWallet'; @@ -16,6 +17,7 @@ export type { WalletDropdownBaseNameReact, WalletDropdownDisconnectReact, WalletDropdownLinkReact, + WalletDropdownFundLinkReact, WalletDropdownReact, WalletReact, } from './types'; diff --git a/src/wallet/types.ts b/src/wallet/types.ts index 631a2566f9..24e1b15b42 100644 --- a/src/wallet/types.ts +++ b/src/wallet/types.ts @@ -107,3 +107,17 @@ export type WalletDropdownLinkReact = { rel?: string; target?: string; }; + +/** + * Note: exported as public Type + */ +export type WalletDropdownFundLinkReact = { + className?: string; // Optional className override for the element + href: string; + icon?: ReactNode; + rel?: string; + target?: string; + text?: string; + type?: 'window' | 'tab'; + size?: 's' | 'm' | 'l'; +};