import React from 'react' import cc from 'classcat' import { color } from '../_utils/branding' import { Avatar } from '../avatar' import { NormalizeProps } from '../layout/layoutNormalizer' import { TextDisplayType } from '../text' import { StyledMessagingSummaryItem } from './MessagingSummaryItem.style' export type MessagingSummaryItemProps = NormalizeProps & Readonly<{ className?: string url: string | JSX.Element pictureUrl: string label: string subLabel: string | JSX.Element timeLabel: string | JSX.Element hasUnreadMessages: boolean }> const UNREAD_COLOR = color.midnightGreen const READ_COLOR = color.lightMidnightGreen const generateSubLabel = (subLabel: string | JSX.Element): JSX.Element => ( {subLabel} ) export const MessagingSummaryItem = ({ className, url, pictureUrl, label, subLabel, timeLabel, hasUnreadMessages, hasHorizontalSpacing = false, }: MessagingSummaryItemProps) => ( } chevron href={url} isClickable hasHorizontalSpacing={hasHorizontalSpacing} /> )