signal-desktop/sticker-creator/elements/MessageBubble.tsx
2019-12-17 12:28:46 -08:00

16 lines
456 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 = ({ children, minutesAgo }: Props) => {
return (
<div className={styles.base}>
{children}
<MessageMeta kind="bubble" minutesAgo={minutesAgo} />
</div>
);
};