import React, { MouseEventHandler } from 'react' import { isDev } from '@xrengine/common/src/config' import { Dialog, DialogContent, DialogTitle } from '@mui/material' import Fade from '@mui/material/Fade' import { Button } from '../inputs/Button' import styles from './styles.module.scss' interface Props { open: boolean isProjectMenu?: boolean onClose: (e: {}, reason: string) => void onConfirm: MouseEventHandler onCancel: MouseEventHandler } export const DeleteDialog = (props: Props): any => { const str = props.isProjectMenu && isDev ? `To prevent accidental loss of data, projects cannot be deleted from this menu in a local dev environment. Use the file system instead.` : `Are you sure` return ( {str} ) }