import { ReactNode } from "react";
import { FormattedMessage } from "react-intl";
import { useNavigate } from "react-router-dom";
import LndLogo from "@/assets/img/lnd-logo.png";
import AlbyIcon from "@/Components/Icons/Alby";
import BlueWallet from "@/Components/Icons/BlueWallet";
import Icon from "@/Components/Icons/Icon";
import NostrIcon from "@/Components/Icons/Nostrich";
import { getAlbyOAuth } from "./wallet/Alby";
const WalletRow = (props: {
logo: ReactNode;
name: ReactNode;
url: string;
desc?: ReactNode;
onClick?: () => void;
}) => {
const navigate = useNavigate();
return (
{
if (props.onClick) {
props.onClick();
} else {
if (props.url.startsWith("http")) {
window.location.href = props.url;
} else {
navigate(props.url);
}
}
}}>
{props.logo}
{props.name}
{props.desc}
);
};
const WalletSettings = () => {
return (
<>
}
name="Nostr Wallet Connect"
url="/settings/wallet/nwc"
desc={}
/>
}
name="LND via LNC"
url="/settings/wallet/lnc"
desc={
}
/>
}
name="LNDHub"
url="/settings/wallet/lndhub"
desc={}
/>
{/*}
name="Cashu"
url="/settings/wallet/cashu"
desc={}
/>*/}
{CONFIG.alby && (
}
name="Alby"
url={""}
onClick={() => {
const alby = getAlbyOAuth();
window.location.href = alby.getAuthUrl();
}}
desc={}
/>
)}
>
);
};
export default WalletSettings;