mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-28 11:46:11 -04:00
40 lines
899 B
TypeScript
40 lines
899 B
TypeScript
import { Box } from "@material-ui/core";
|
|
import { ReactNode } from "react";
|
|
import ActionableMonospaceTextBox from "renderer/components/other/ActionableMonospaceTextBox";
|
|
import InfoBox from "./InfoBox";
|
|
|
|
type Props = {
|
|
title: string;
|
|
address: string;
|
|
additionalContent: ReactNode;
|
|
icon: ReactNode;
|
|
};
|
|
|
|
export default function DepositAddressInfoBox({
|
|
title,
|
|
address,
|
|
additionalContent,
|
|
icon,
|
|
}: Props) {
|
|
return (
|
|
<InfoBox
|
|
title={title}
|
|
mainContent={<ActionableMonospaceTextBox content={address} displayCopyIcon={true} enableQrCode={true} />}
|
|
additionalContent={
|
|
<Box
|
|
style={{
|
|
display: "flex",
|
|
flexDirection: "row",
|
|
gap: "0.5rem",
|
|
alignItems: "center",
|
|
}}
|
|
>
|
|
<Box>{additionalContent}</Box>
|
|
</Box>
|
|
}
|
|
icon={icon}
|
|
loading={false}
|
|
/>
|
|
);
|
|
}
|