import React, { MouseEventHandler } from 'react'; import { Box, Icon, Icons, Text, as, toRem } from 'folds'; import { MatrixClient } from 'matrix-js-sdk'; import classNames from 'classnames'; import * as css from './Reply.css'; import { ForwardedMeta } from '../../features/room/message/forwardContent'; import { getMemberDisplayName } from '../../utils/room'; import { getMxIdLocalPart } from '../../utils/matrix'; import { formatTimestamp } from '../../utils/formatTimestamp'; type ForwardedHeaderProps = { mx: MatrixClient; meta: ForwardedMeta; hour24Clock: boolean; dateFormatString: string; /** Present when the viewer can open the original (they are in the source room). */ onJump?: MouseEventHandler; }; /** * "↪ Forwarded · from in ·