import React from "react"; import { useTranslation } from "react-i18next"; import { Dialog, DialogContent, Divider, Link, List, ListItemText, ListItem, ListItemIcon, Typography, } from "@mui/material"; import BoltIcon from "@mui/icons-material/Bolt"; import PublicIcon from "@mui/icons-material/Public"; import DnsIcon from "@mui/icons-material/Dns"; import WebIcon from "@mui/icons-material/Web"; import FavoriteIcon from "@mui/icons-material/Favorite"; import GitHubIcon from "@mui/icons-material/GitHub"; import EqualizerIcon from "@mui/icons-material/Equalizer"; import { AmbossIcon, BitcoinSignIcon } from "../Icons"; import { pn } from "../../utils/prettyNumbers"; type Props = { isOpen: boolean; handleClickCloseStatsForNerds: () => void; lndVersion: string; network: string; nodeAlias: string; nodeId: string; alternativeName: string; alternativeSite: string; robosatsRunningCommitHash: string; lastDayVolume: number; lifetimeVolume: number; } const StatsDialog = ({ isOpen, handleClickCloseStatsForNerds, lndVersion, network, nodeAlias, nodeId, alternativeName, alternativeSite, robosatsRunningCommitHash, lastDayVolume, lifetimeVolume, }: Props): JSX.Element => { const { t } = useTranslation(); return ( {t("Stats For Nerds")} {network === "testnet" ? ( {`${nodeId.slice(0, 12)}... (1ML)`} ) : ( {`${nodeId.slice(0, 12)}... (AMBOSS)`} )} {`${alternativeSite.slice(0, 12)}...onion`} {`${robosatsRunningCommitHash.slice(0, 12)}...`}
{pn(lastDayVolume)}
{pn(lifetimeVolume)}
{`${t("Made with")} `} {` ${t("and")} `} } secondary={t("... somewhere on Earth!")} />
); }; export default StatsDialog;