signal-desktop/ts/state/smart/UniversalTimerNotification.tsx
Jamie Kyle 27b55e472d
Refactor smart components
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
2024-03-13 13:44:13 -07:00

16 lines
663 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';
import { getIntl } from '../selectors/user';
import { getUniversalExpireTimer } from '../selectors/items';
export const SmartUniversalTimerNotification = memo(
function SmartUniversalTimerNotification() {
const i18n = useSelector(getIntl);
const expireTimer = useSelector(getUniversalExpireTimer);
return <UniversalTimerNotification i18n={i18n} expireTimer={expireTimer} />;
}
);