/**
 * ❌ metamask
 * ✅ coinbase
 * ❌ wallet-connect
 * ❌ rainbow
 * ✅ frame
 * ✅ rabby - test
 */

const supportedWallets = ["coinbase", "frame"];

/**
 * Checks if the connected wallet supports signing messages from any network.
 * @returns {boolean} True if the wallet supports chain-agnostic signing, false otherwise.
 */

export function checkUniversalSigningSupport(walletName?: string) {
	if (!walletName) return;
	return !!supportedWallets.find((item) =>
		walletName?.toLowerCase()?.includes(item),
	);
}
