import { Box, Button, Card, CardBody, CardFooter, CardHeader, Heading, Stack, StackDivider, Text, } from "@chakra-ui/react"; import { useEffect, useState } from "react"; export default function (props: AppealCardProps) { 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} ID: {props.id} }> 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} ); }