pythonasyncioapiasyncfastapiframeworkjsonjson-schemaopenapiopenapi3pydanticpython-typespython3redocreststarletteswaggerswagger-uiuvicornweb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
779 B
35 lines
779 B
import {
|
|
Button,
|
|
Container,
|
|
Heading,
|
|
Text,
|
|
useDisclosure,
|
|
} from "@chakra-ui/react"
|
|
|
|
import DeleteConfirmation from "./DeleteConfirmation"
|
|
|
|
const DeleteAccount = () => {
|
|
const confirmationModal = useDisclosure()
|
|
|
|
return (
|
|
<>
|
|
<Container maxW="full">
|
|
<Heading size="sm" py={4}>
|
|
Delete Account
|
|
</Heading>
|
|
<Text>
|
|
Permanently delete your data and everything associated with your
|
|
account.
|
|
</Text>
|
|
<Button variant="danger" mt={4} onClick={confirmationModal.onOpen}>
|
|
Delete
|
|
</Button>
|
|
<DeleteConfirmation
|
|
isOpen={confirmationModal.isOpen}
|
|
onClose={confirmationModal.onClose}
|
|
/>
|
|
</Container>
|
|
</>
|
|
)
|
|
}
|
|
export default DeleteAccount
|
|
|