Show bubble tile timestamps for bubble layout inside the bubble (#7622)
This commit is contained in:
parent
8ddd677c35
commit
fb49ccce35
11 changed files with 66 additions and 11 deletions
|
@ -20,15 +20,23 @@ import classNames from "classnames";
|
|||
interface IProps {
|
||||
className: string;
|
||||
title: string;
|
||||
timestamp?: JSX.Element;
|
||||
subtitle?: ReactNode;
|
||||
children?: ReactChildren;
|
||||
}
|
||||
|
||||
const EventTileBubble = forwardRef<HTMLDivElement, IProps>(({ className, title, subtitle, children }, ref) => {
|
||||
const EventTileBubble = forwardRef<HTMLDivElement, IProps>(({
|
||||
className,
|
||||
title,
|
||||
timestamp,
|
||||
subtitle,
|
||||
children,
|
||||
}, ref) => {
|
||||
return <div className={classNames("mx_EventTileBubble", className)} ref={ref}>
|
||||
<div className="mx_EventTileBubble_title">{ title }</div>
|
||||
{ subtitle && <div className="mx_EventTileBubble_subtitle">{ subtitle }</div> }
|
||||
{ children }
|
||||
{ timestamp }
|
||||
</div>;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue