Files
Desktop/ts/state/smart/UniversalTimerNotification.dom.tsx
T
2026-03-30 11:54:59 -07:00

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