mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
29 lines
811 B
JavaScript
29 lines
811 B
JavaScript
import { useState } from 'react'
|
|
import { Dialog } from '@headlessui/react'
|
|
|
|
/**
|
|
* 图片弹出模态框
|
|
*/
|
|
export default function PlogModal(props) {
|
|
const [isOpen, setIsOpen] = useState(true)
|
|
|
|
return (
|
|
<Dialog open={isOpen} onClose={() => setIsOpen(false)}>
|
|
<Dialog.Panel>
|
|
<Dialog.Title>Deactivate account</Dialog.Title>
|
|
<Dialog.Description>
|
|
This will permanently deactivate your account
|
|
</Dialog.Description>
|
|
|
|
<p>
|
|
Are you sure you want to deactivate your account? All of your data
|
|
will be permanently removed. This action cannot be undone.
|
|
</p>
|
|
|
|
<button onClick={() => setIsOpen(false)}>Deactivate</button>
|
|
<button onClick={() => setIsOpen(false)}>Cancel</button>
|
|
</Dialog.Panel>
|
|
</Dialog>
|
|
)
|
|
}
|