index.tsx 639 B

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