import './App.css'; import { Fragment } from 'react'; import { Navigate, Outlet, Route, Routes, useParams } from 'react-router'; import { CssBaseline, ThemeProvider, Typography } from '@mui/material'; import { lightTheme } from './themes'; import { Hash, MutableSet, Store } from '@hyper-hyper-space/core'; import { ObjectState, useObjectState } from '@hyper-hyper-space/react'; import StartPage from './pages/start/StartPage'; import LookupSpaceDialog from './pages/start/components/LookupSpaceDialog'; import CreateHomeDialog from './pages/start/components/CreateHomeDialog'; import LinkDeviceDialog from './pages/start/components/CreateLinkDeviceOfferDialog'; import HomeSpace from './pages/home/HomeSpace'; import ManageDevicesDialog from './pages/home/components/ManageDevicesDialog'; import ViewFolderDialog from './pages/home/components/ViewFolderDialog'; import SpaceFrame, { SpaceComponent } from './pages/space/SpaceFrame'; import HyperBrowserEnv from './context/HyperBrowserContext'; import StorageDialog from './pages/home/components/StorageDialog'; import EditProfileDialog from './pages/home/components/EditProfileDialog'; import ContactsDialog from './pages/home/components/ContactsDialog'; import ShareProfileDialog from './pages/home/components/ShareProfileDialog'; import ViewProfileDialog from './pages/home/components/ViewProfileDialog'; import AddContactDialog from './pages/home/components/AddContactDialog'; import NoHomeDialog from './pages/start/components/NoHomeDialog'; import ViewProfileAnonDialog from './pages/start/components/ViewProfileAnonDialog'; import ViewAuthorDialog from './pages/space/ViewAuthorDialog'; import AllChatsDialog from './pages/home/components/AllChatsDialog'; import SpaceSharingDialog from './pages/home/components/SpaceSharingDialog'; function RedirectContactLink(props: {homes: ObjectState>}) { const params = useParams(); const { profile } = params; if (props.homes?.value === undefined) { return Loading... } else if (props.homes?.value?.size() === 0) { if (profile === undefined) { return ; } else { return ; } } else { if (profile === undefined) { return } else { return } } }; function App(props: {homes: MutableSet, config: Store}) { const homes = useObjectState(props.homes) as ObjectState>; const confReady = props.config && homes && homes.value; return ( { confReady &&
: }/> }/> }> } /> } /> } /> } /> } /> } /> } /> }> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> }> }/> } /> }/>
} { !confReady &&

Loading...

}
); } export default App;