import { FC } from 'react'; import Paper from '@mui/material/Paper'; import { Box, styled, Typography, Tooltip } from '@mui/material'; import TimeAgo from 'react-timeago'; import { StyledAvatar } from './StyledAvatar'; import { IChangeRequestComment } from '../../changeRequest.types'; const ChangeRequestCommentWrapper = styled(Box)(({ theme }) => ({ display: 'flex', marginTop: theme.spacing(2), })); const CommentPaper = styled(Paper)(({ theme }) => ({ width: '100%', padding: theme.spacing(2), backgroundColor: theme.palette.tertiary.light, })); const CommentHeader = styled(Box)(({ theme }) => ({ display: 'flex', borderBottom: '1px solid', borderColor: theme.palette.divider, paddingBottom: theme.spacing(1), })); export const ChangeRequestComment: FC<{ comment: IChangeRequestComment }> = ({ comment, }) => ( {comment.createdBy.username}{' '} commented{' '} {comment.text} );