Files
Arkie-Library-Frontend/src/wallet/WalletBrandIcon.tsx

29 lines
555 B
TypeScript
Raw Normal View History

import type { WalletKind } from "./injected";
2026-06-04 10:52:41 +08:00
const logos: Partial<Record<WalletKind, string>> = {
tokenPocket: "/assets/ark-library/wallets/tokenpocket.svg",
imToken: "/assets/ark-library/wallets/imtoken.svg",
};
export function WalletBrandIcon({
kind,
size = 28,
}: {
kind: WalletKind;
size?: number;
}) {
2026-06-04 10:52:41 +08:00
const logo = logos[kind];
if (!logo) return null;
return (
2026-06-04 10:52:41 +08:00
<img
src={logo}
alt=""
aria-hidden="true"
2026-06-04 10:52:41 +08:00
width={size}
height={size}
className="inline-flex shrink-0 rounded-lg"
/>
);
}