import { useCallback, useRef } from 'react' import { AlertDialog, AlertDialogDescription, AlertDialogLabel } from '@reach/alert-dialog' import { WebApplication } from '@/Application/Application' import { ViewControllerManager } from '@/Services/ViewControllerManager' import { observer } from 'mobx-react-lite' import Button from '@/Components/Button/Button' type Props = { application: WebApplication viewControllerManager: ViewControllerManager } const ConfirmOtherSessionsSignOut = observer(({ application, viewControllerManager }: Props) => { const cancelRef = useRef(null) const closeDialog = useCallback(() => { viewControllerManager.accountMenuController.setOtherSessionsSignOut(false) }, [viewControllerManager]) return (
End all other sessions?

This action will sign out all other devices signed into your account, and remove your data from those devices when they next regain connection to the internet. You may sign back in on those devices at any time.

) }) ConfirmOtherSessionsSignOut.displayName = 'ConfirmOtherSessionsSignOut' const OtherSessionsSignOutContainer = (props: Props) => { if (!props.viewControllerManager.accountMenuController.otherSessionsSignOut) { return null } return } export default observer(OtherSessionsSignOutContainer)