// Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import * as React from 'react'; import classNames from 'classnames'; import { Modal } from '../Modal'; import { useRestoreFocus } from '../../util/hooks/useRestoreFocus'; import { LocalizerType } from '../../types/Util'; export type PropsType = { i18n: LocalizerType; contactSupport: () => unknown; onClose: () => unknown; }; export function ChatSessionRefreshedDialog( props: PropsType ): React.ReactElement { const { i18n, contactSupport, onClose } = props; // Focus first button after initial render, restore focus on teardown const [focusRef] = useRestoreFocus(); return (
{i18n('ChatRefresh--notification')}
{i18n('ChatRefresh--summary')}
); }