import { Box, Button, Card, CardBody, CardFooter, CardHeader, Heading, Stack, StackDivider, Text, } from "@chakra-ui/react"; import { useEffect, useState } from "react"; export default function (props: { ban_reason: string; createdAt: number; discriminator: string; id: string; learned: string; reason_for_unban: string; username: string; }) { const [dateString, setDateString] = useState( new Date(props.createdAt).toUTCString() ); useEffect(() => { setDateString(new Date(props.createdAt).toLocaleString()); }, [props.createdAt]); 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: {dateString}
ID: {props.id}
); }