import CircularProgress from '@material-ui/core/CircularProgress' import { ReactElement, useContext } from 'react' import ExpandableList from '../../components/ExpandableList' import ExpandableListItemInput from '../../components/ExpandableListItemInput' import { Context as SettingsContext } from '../../providers/Settings' export default function SettingsPage(): ReactElement { const { apiUrl, apiDebugUrl, setApiUrl, setDebugApiUrl, lockedApiSettings, config, isLoading } = useContext(SettingsContext) if (isLoading) { return (
) } // Run within Bee Desktop, display read only config if (config) { return ( {config['swap-endpoint'] && ( )} ) } return ( ) }