// Discord on a member's account: link it to sign in with Discord too (and on T5DE's other sites), or unlink it. import { DiscordButton } from "@/components/discord-button"; import { ActionForm, ErrorText, SubmitButton } from "@/components/forms"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { unlinkDiscord } from "./actions"; export function DiscordCard({ linked, error }: { linked: boolean; error?: string }) { return ( Discord {linked ? "Linked: you can sign in with Discord, here and on T5DE's other sites." : "Link Discord to sign in with it, here and on T5DE's other sites."} {error && {error}} {linked ? ( Unlink Discord ) : ( )} ); }