import type { CommonProps } from '@/proxy/common' import { Card, Tag } from '@/components/ui' import { NotificationChannelColors } from '@/constants/notification-channel.enum' import { NotificationDto } from '@/proxy/notification/models' import classNames from 'classnames' import dayjs from 'dayjs' type EventProps = { data: NotificationDto compact?: boolean } const HighlightedText = ({ children, className }: CommonProps) => { return ( {children} ) } const Event = ({ data, compact }: EventProps) => { return ( <> {compact ? ( <>
{data.creatorFullname} {dayjs(data.creationTime).format('hh:mm A')}
bildirim gönderdi {data.notificationType} {data.notificationChannel}
) : (
{data.notificationType} bildirimi gönderdi.
{data.notificationChannel} {dayjs(data.creationTime).format('LT')}
)} {data.message && ( {data.message} )} ) } export default Event