2023-01-03 11:55:46 -08:00
|
|
|
// Copyright 2020 Signal Messenger, LLC
|
2020-10-30 15:34:04 -05:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2020-02-12 13:30:58 -08:00
|
|
|
import React from 'react';
|
|
|
|
|
2021-10-26 14:15:33 -05:00
|
|
|
import type { LocalizerType } from '../types/Util';
|
2021-10-12 18:59:08 -05:00
|
|
|
import type { WidthBreakpoint } from './_util';
|
2020-02-12 13:30:58 -08:00
|
|
|
|
2021-09-17 15:20:49 -07:00
|
|
|
import { LeftPaneDialog } from './LeftPaneDialog';
|
2021-10-12 18:59:08 -05:00
|
|
|
import { openLinkInWebBrowser } from '../util/openLinkInWebBrowser';
|
2021-09-17 15:20:49 -07:00
|
|
|
|
2023-01-18 15:31:10 -08:00
|
|
|
export type PropsType = {
|
2021-10-12 18:59:08 -05:00
|
|
|
containerWidthBreakpoint: WidthBreakpoint;
|
2020-02-12 13:30:58 -08:00
|
|
|
i18n: LocalizerType;
|
2021-01-14 12:07:05 -06:00
|
|
|
};
|
2020-02-12 13:30:58 -08:00
|
|
|
|
2022-11-17 16:45:19 -08:00
|
|
|
export function DialogExpiredBuild({
|
2021-10-12 18:59:08 -05:00
|
|
|
containerWidthBreakpoint,
|
2020-02-12 13:30:58 -08:00
|
|
|
i18n,
|
2022-11-17 16:45:19 -08:00
|
|
|
}: PropsType): JSX.Element | null {
|
2020-02-12 13:30:58 -08:00
|
|
|
return (
|
2021-10-12 18:59:08 -05:00
|
|
|
<LeftPaneDialog
|
|
|
|
containerWidthBreakpoint={containerWidthBreakpoint}
|
|
|
|
type="error"
|
|
|
|
onClick={() => {
|
|
|
|
openLinkInWebBrowser('https://signal.org/download/');
|
|
|
|
}}
|
2023-03-29 17:03:25 -07:00
|
|
|
clickLabel={i18n('icu:upgrade')}
|
2021-10-12 18:59:08 -05:00
|
|
|
hasAction
|
|
|
|
>
|
2023-03-29 17:03:25 -07:00
|
|
|
{i18n('icu:expiredWarning')}{' '}
|
2021-09-17 15:20:49 -07:00
|
|
|
</LeftPaneDialog>
|
2020-02-12 13:30:58 -08:00
|
|
|
);
|
2022-11-17 16:45:19 -08:00
|
|
|
}
|