signal-desktop/sticker-creator/elements/MessageBubble.tsx

19 lines
482 B
TypeScript

import * as React from 'react';
import * as styles from './MessageBubble.scss';
import { MessageMeta, Props as MessageMetaProps } from './MessageMeta';
export type Props = Pick<MessageMetaProps, 'minutesAgo'> & {
children: React.ReactNode;
};
export const MessageBubble: React.ComponentType<Props> = ({
children,
minutesAgo,
}) => {
return (
<div className={styles.base}>
{children}
<MessageMeta kind="bubble" minutesAgo={minutesAgo} />
</div>
);
};