mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-09 05:01:47 +08:00
21 lines
457 B
TypeScript
21 lines
457 B
TypeScript
'use client'
|
|
import { useBoolean } from 'ahooks'
|
|
import UpdatePlugin from '@/app/components/plugins/update-plugin'
|
|
|
|
const Page = () => {
|
|
const [isShowUpdateModal, {
|
|
setTrue: showUpdateModal,
|
|
setFalse: hideUpdateModal,
|
|
}] = useBoolean(false)
|
|
return (
|
|
<div>
|
|
<div onClick={showUpdateModal}>Show Upgrade</div>
|
|
{isShowUpdateModal && (
|
|
<UpdatePlugin onHide={hideUpdateModal} />
|
|
)}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Page
|