// Copyright 2020-2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import { LocalizerType } from '../types/Util'; type PropsType = { hasExpired: boolean; i18n: LocalizerType; }; export const ExpiredBuildDialog = ({ hasExpired, i18n, }: PropsType): JSX.Element | null => { if (!hasExpired) { return null; } return (
{i18n('expiredWarning')}
); };