diff --git a/src/pages/invite/InviteBot.tsx b/src/pages/invite/InviteBot.tsx index 85dc0597..7c1a2a5a 100644 --- a/src/pages/invite/InviteBot.tsx +++ b/src/pages/invite/InviteBot.tsx @@ -1,5 +1,7 @@ import { useParams } from "react-router-dom"; +import { ServerPermission } from "revolt.js"; import { Route } from "revolt.js/dist/api/routes"; +import styled from "styled-components"; import { useEffect, useState } from "preact/hooks"; @@ -12,6 +14,26 @@ import Overline from "../../components/ui/Overline"; import Preloader from "../../components/ui/Preloader"; import Tip from "../../components/ui/Tip"; +import Markdown from "../../components/markdown/Markdown"; + +const BotInfo = styled.div` + gap: 12px; + display: flex; + padding: 12px; + + h1, + p { + margin: 0; + } +`; + +const Option = styled.div` + gap: 8px; + display: flex; + margin-top: 4px; + margin-bottom: 12px; +`; + export default function InviteBot() { const { id } = useParams<{ id: string }>(); const client = useClient(); @@ -34,49 +56,67 @@ export default function InviteBot() { {typeof data === "undefined" && } {data && ( <> - -

{data.username}

- {data.description &&

{data.description}

} + + +
+

{data.username}

+ {data.description && ( + + )} +
+
Add to server - setServer(e.currentTarget.value)}> - - {[...client.servers.values()].map((server) => ( - - ))} - - + Add to group - setGroup(e.currentTarget.value)}> - - {[...client.channels.values()] - .filter((x) => x.channel_type === "Group") - .map((channel) => ( - - ))} - - + )}