Files
twenty/packages/twenty-front/src/modules/activities/emails/components/EmailThreadMessageBodyPreview.tsx
Thomas Trompette 389c263e2e Design fixes + hide email tab if not a company or a person (#3720)
Design fixes + hide email tab

Co-authored-by: Thomas Trompette <thomast@twenty.com>
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2024-01-31 16:55:04 +01:00

23 lines
555 B
TypeScript

import React from 'react';
import styled from '@emotion/styled';
const StyledThreadMessageBodyPreview = styled.div`
color: ${({ theme }) => theme.font.color.tertiary};
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: ${({ theme }) => theme.font.size.sm};
`;
type EmailThreadMessageBodyPreviewProps = {
body: string;
};
export const EmailThreadMessageBodyPreview = ({
body,
}: EmailThreadMessageBodyPreviewProps) => {
return (
<StyledThreadMessageBodyPreview>{body}</StyledThreadMessageBodyPreview>
);
};