You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/ts/components/conversation/message/message-item/Message.tsx

17 lines
515 B
TypeScript

import { v4 as uuidv4 } from 'uuid';
import { THUMBNAIL_SIDE } from '../../../../types/attachments/VisualAttachment';
import { GenericReadableMessage } from './GenericReadableMessage';
// Same as MIN_WIDTH in ImageGrid.tsx
export const MINIMUM_LINK_PREVIEW_IMAGE_WIDTH = THUMBNAIL_SIDE;
type Props = {
messageId: string;
};
export const Message = (props: Props) => {
const ctxMenuID = `ctx-menu-message-${uuidv4()}`;
return <GenericReadableMessage ctxMenuID={ctxMenuID} messageId={props.messageId} />;
};