2021-06-01 20:45:43 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2024-03-13 20:44:13 +00:00
|
|
|
import React, { memo } from 'react';
|
|
|
|
import { useSelector } from 'react-redux';
|
2021-06-01 20:45:43 +00:00
|
|
|
import { UniversalTimerNotification } from '../../components/conversation/UniversalTimerNotification';
|
|
|
|
import { getIntl } from '../selectors/user';
|
|
|
|
import { getUniversalExpireTimer } from '../selectors/items';
|
|
|
|
|
2024-03-13 20:44:13 +00:00
|
|
|
export const SmartUniversalTimerNotification = memo(
|
|
|
|
function SmartUniversalTimerNotification() {
|
|
|
|
const i18n = useSelector(getIntl);
|
|
|
|
const expireTimer = useSelector(getUniversalExpireTimer);
|
|
|
|
return <UniversalTimerNotification i18n={i18n} expireTimer={expireTimer} />;
|
|
|
|
}
|
2021-06-01 20:45:43 +00:00
|
|
|
);
|