signal-desktop/sticker-creator/elements/MessageBubble.tsx
2020-11-04 13:03:13 -06:00

22 lines
570 B
TypeScript

// Copyright 2019-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
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>
);
};