import { Box, Bubble } from '@rocket.chat/fuselage'; import type { Ref } from 'react'; import { forwardRef } from 'react'; import { useFormatDate } from '../../../hooks/useFormatDate'; import type { BubbleDateProps } from '../hooks/useDateScroll'; export const BubbleDate = forwardRef(function BubbleDate( { bubbleDate, showBubble, bubbleDateStyle, bubbleDateClassName }: BubbleDateProps, ref: Ref, ) { const formatDate = useFormatDate(); return ( {bubbleDate && ( {formatDate(bubbleDate)} )} ); });