import React, { useContext } from 'react';
import { Intl } from '../Intl';
import { missingCaseError } from '../../util/missingCaseError';
import { SessionIcon, SessionIconSize, SessionIconType } from '../session/icon';
import { ThemeContext } from 'styled-components';
import { PropsForExpirationTimer } from '../../state/ducks/conversations';
export const TimerNotification = (props: PropsForExpirationTimer) => {
function renderContents() {
const { phoneNumber, profileName, timespan, type, disabled } = props;
const changeKey = disabled ? 'disabledDisappearingMessages' : 'theyChangedTheTimer';
const contact = (
{profileName || phoneNumber}
);
switch (type) {
case 'fromOther':
return