1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| 'use client'
| import AppList from './app-list'
| import FullScreenModal from '@/app/components/base/fullscreen-modal'
|
| type CreateAppDialogProps = {
| show: boolean
| onSuccess: () => void
| onClose: () => void
| onCreateFromBlank?: () => void
| }
|
| const CreateAppTemplateDialog = ({ show, onSuccess, onClose, onCreateFromBlank }: CreateAppDialogProps) => {
| return (
| <FullScreenModal
| open={show}
| closable
| onClose={onClose}
| >
| <AppList onCreateFromBlank={onCreateFromBlank} onSuccess={() => {
| onSuccess()
| onClose()
| }} />
| </FullScreenModal>
| )
| }
|
| export default CreateAppTemplateDialog
|
|