import { Button } from '@/components/Button';
import { OtherSessionsSignOutContainer } from '@/components/OtherSessionsSignOut';
import {
PreferencesGroup,
PreferencesSegment,
Subtitle,
Text,
Title,
} from '@/components/Preferences/components';
import { WebApplication } from '@/ui_models/application';
import { AppState } from '@/ui_models/app_state';
import { observer } from 'mobx-react-lite';
import { FunctionComponent } from 'preact';
const SignOutView: FunctionComponent<{
application: WebApplication;
appState: AppState;
}> = observer(({ application, appState }) => {
return (
<>
Sign outOther devicesWant to sign out on all devices except this one?
This workspace
Remove all data related to the current workspace from the
application.
{
appState.accountMenu.setSigningOut(true);
}}
/>
>
);
});
const ClearSessionDataView: FunctionComponent<{
appState: AppState;
}> = observer(({ appState }) => {
return (
Clear workspace
Remove all data related to the current workspace from the application.
{
appState.accountMenu.setSigningOut(true);
}}
/>
);
});
export const SignOutWrapper: FunctionComponent<{
application: WebApplication;
appState: AppState;
}> = observer(({ application, appState }) => {
if (!application.hasAccount()) {
return ;
}
return ;
});