mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 05:38:12 +00:00
17 lines
672 B
TypeScript
17 lines
672 B
TypeScript
// Copyright 2021 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import React, { memo } from 'react';
|
|
import { useSelector } from 'react-redux';
|
|
import { UniversalTimerNotification } from '../../components/conversation/UniversalTimerNotification.js';
|
|
import { getIntl } from '../selectors/user.js';
|
|
import { getUniversalExpireTimer } from '../selectors/items.js';
|
|
|
|
export const SmartUniversalTimerNotification = memo(
|
|
function SmartUniversalTimerNotification() {
|
|
const i18n = useSelector(getIntl);
|
|
const expireTimer = useSelector(getUniversalExpireTimer);
|
|
return <UniversalTimerNotification i18n={i18n} expireTimer={expireTimer} />;
|
|
}
|
|
);
|