import { useState } from 'react'; import { Button, Card, CardContent, Dialog, DialogActions, DialogContent, DialogTitle, Stack, Typography } from '@mui/material'; function CreateHomeDialog(props: {onClose: () => void, setSaveSpacePending: React.Dispatch>}) { const [open, setOpen] = useState(true); const close = () => { setOpen(false); props.onClose(); } const createHome = () => { props.setSaveSpacePending(true); window.open('./#/start/create-home', '_blank'); close(); } const decline = () => { props.setSaveSpacePending(false); close(); } return ( Initialize a Home Space? 🏠 To save a copy of the space in this device, you need to create a Home Space first. ); } export default CreateHomeDialog;