From ba768400151504791804d512e0f23aece1341f16 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:49:08 -0400 Subject: [PATCH] Create AppealCard component --- components/AppealCard.tsx | 56 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 components/AppealCard.tsx diff --git a/components/AppealCard.tsx b/components/AppealCard.tsx new file mode 100644 index 0000000..b7ac2ad --- /dev/null +++ b/components/AppealCard.tsx @@ -0,0 +1,56 @@ +import { + Box, + Card, + CardBody, + CardFooter, + CardHeader, + Heading, + Stack, + StackDivider, + Text, +} from "@chakra-ui/react"; + +export default function (props: { + ban_reason: string; + createdAt: number; + discriminator: string; + id: string; + learned: string; + reason_for_unban: string; + username: string; +}) { + return ( + <> + + + + Appeal for {props.username}#{props.discriminator} + + + + }> + + Response: Why were you banned? + {props.ban_reason} + + + Response: Why should we unban you? + {props.reason_for_unban} + + + + Response: What have you learned from your mistake? + + {props.learned} + + + + + + Submitted at: {new Date(props.createdAt).toLocaleString()} + + + + + ); +}