Initial bot page stylings

This commit is contained in:
Snazzah
2021-08-30 16:18:42 +00:00
committed by GitHub
parent 648f0bbf73
commit 144e4db7c7
5 changed files with 194 additions and 11 deletions

View File

@@ -0,0 +1,27 @@
import { Text } from "preact-i18n";
import Modal from "../../../components/ui/Modal";
interface Props {
onClose: () => void;
token: string;
username: string;
}
export function TokenRevealModal({ onClose, token,username }: Props) {
return (
<Modal
visible={true}
onClose={onClose}
title={`${username}'s Token`}
actions={[
{
onClick: onClose,
confirmation: true,
children: <Text id="app.special.modals.actions.close" />,
},
]}>
<code style={{ userSelect: "all" }}>{token}</code>
</Modal>
);
}