{token}
+
+ );
+}
diff --git a/src/pages/settings/panes/MyBots.tsx b/src/pages/settings/panes/MyBots.tsx
index 5e558954..27e21083 100644
--- a/src/pages/settings/panes/MyBots.tsx
+++ b/src/pages/settings/panes/MyBots.tsx
@@ -1,17 +1,26 @@
+import { Key, Clipboard, Globe } from "@styled-icons/boxicons-regular";
+import { LockAlt } from "@styled-icons/boxicons-solid";
import { observer } from "mobx-react-lite";
import { Bot } from "revolt-api/types/Bots";
+import styled from "styled-components";
+import styles from "./Panes.module.scss";
+import { Text } from "preact-i18n";
import { useEffect, useState } from "preact/hooks";
+import { stopPropagation } from "../../../lib/stopPropagation";
+
import { useIntermediate } from "../../../context/intermediate/Intermediate";
import { useClient } from "../../../context/revoltjs/RevoltClient";
-import UserShort from "../../../components/common/user/UserShort";
+import Tooltip from "../../../components/common/Tooltip";
+import UserIcon from "../../../components/common/user/UserIcon";
import Button from "../../../components/ui/Button";
import Checkbox from "../../../components/ui/Checkbox";
import InputBox from "../../../components/ui/InputBox";
import Overline from "../../../components/ui/Overline";
import Tip from "../../../components/ui/Tip";
+import CategoryButton from "../../../components/ui/fluent/CategoryButton";
interface Data {
_id: string;
@@ -20,6 +29,21 @@ interface Data {
interactions_url?: string;
}
+const BotBadge = styled.div`
+ display: inline-block;
+
+ height: 1.3em;
+ padding: 0px 4px;
+ font-size: 0.7em;
+ user-select: none;
+ margin-inline-start: 2px;
+ text-transform: uppercase;
+
+ color: var(--foreground);
+ background: var(--accent);
+ border-radius: calc(var(--border-radius) / 2);
+`;
+
function BotEditor({ bot }: { bot: Data }) {
const client = useClient();
const [data, setData] = useState(bot);
@@ -78,10 +102,11 @@ export const MyBots = observer(() => {
}, []);
const [name, setName] = useState("");
- const { writeClipboard } = useIntermediate();
+ const [editMode, setEditMode] = useState(false);
+ const { writeClipboard, openScreen } = useIntermediate();
return (
-
- token:{" "}
-
- {bot.token}
-
-