Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Create inactivity notice card
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { | ||
Box, | ||
Button, | ||
Card, | ||
CardBody, | ||
CardFooter, | ||
CardHeader, | ||
Heading, | ||
Stack, | ||
StackDivider, | ||
Text, | ||
} from "@chakra-ui/react"; | ||
|
||
export default function (props: InactivityNoticeProps) { | ||
return ( | ||
<Card w="100%"> | ||
<CardHeader> | ||
<Heading size="md">Inactivity Notice for {props.user.username}</Heading> | ||
<Text fontSize="xs">ID: {props.user.id}</Text> | ||
</CardHeader> | ||
<CardBody> | ||
<Stack divider={<StackDivider />}> | ||
<Box> | ||
<Heading size="xs">Reason for Inactivity</Heading> | ||
<Text>{props.reason}</Text> | ||
</Box> | ||
<Box> | ||
<Heading size="xs">Start Date</Heading> | ||
<Text>{new Date(props.start).toLocaleDateString()}</Text> | ||
</Box> | ||
<Box> | ||
<Heading size="xs">End Date</Heading> | ||
<Text>{new Date(props.end).toLocaleDateString()}</Text> | ||
</Box> | ||
</Stack> | ||
</CardBody> | ||
<CardFooter pb="4px"> | ||
<Box> | ||
<Button colorScheme="red">Deny</Button> | ||
<Button colorScheme="blue" ml="8px"> | ||
Accept | ||
</Button> | ||
</Box> | ||
</CardFooter> | ||
</Card> | ||
); | ||
} |