2021-01-14 18:07:05 +00:00
|
|
|
// Copyright 2020-2021 Signal Messenger, LLC
|
2020-10-30 20:34:04 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2020-02-12 21:30:58 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { LocalizerType } from '../types/Util';
|
|
|
|
|
2021-01-14 18:07:05 +00:00
|
|
|
type PropsType = {
|
2020-02-12 21:30:58 +00:00
|
|
|
hasExpired: boolean;
|
|
|
|
i18n: LocalizerType;
|
2021-01-14 18:07:05 +00:00
|
|
|
};
|
2020-02-12 21:30:58 +00:00
|
|
|
|
|
|
|
export const ExpiredBuildDialog = ({
|
|
|
|
hasExpired,
|
|
|
|
i18n,
|
|
|
|
}: PropsType): JSX.Element | null => {
|
|
|
|
if (!hasExpired) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="module-left-pane-dialog module-left-pane-dialog--error">
|
|
|
|
{i18n('expiredWarning')}
|
|
|
|
<div className="module-left-pane-dialog__actions">
|
|
|
|
<a
|
|
|
|
className="module-left-pane-dialog__link"
|
|
|
|
href="https://signal.org/download/"
|
|
|
|
rel="noreferrer"
|
|
|
|
tabIndex={-1}
|
|
|
|
target="_blank"
|
|
|
|
>
|
2020-09-12 00:46:52 +00:00
|
|
|
<button type="button" className="upgrade">
|
|
|
|
{i18n('upgrade')}
|
|
|
|
</button>
|
2020-02-12 21:30:58 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|