1 import type { CSSProperties, Ref } from 'react';
3 import { c, msgid } from 'ttag';
5 import clsx from '@proton/utils/clsx';
10 eventRef?: Ref<HTMLDivElement>;
13 // NOTE: Can not be a button to satisfy auto close, and to be the same as the normal events
14 const MoreFullDayEvent = ({ style, more, eventRef, isSelected }: Props) => {
15 // translator: This string shows up when we have to collapse some events in the calendar view because they don't all fit in the window. The variable ${more} is a number. E.g.: "3 more" (short for 3 events more)
16 const moreText = c('Calendar view; more events collapsed').ngettext(msgid`${more} more`, `${more} more`, more);
19 <div style={style} className="calendar-dayeventcell h-custom w-custom top-custom left-custom absolute">
22 'calendar-dayeventcell-inner isNotAllDay isLoaded inline-flex text-left w-full px-2',
23 isSelected && 'isSelected',
26 // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
30 data-testid="calendar-view:more-events-collapsed"
31 className="my-auto text-ellipsis"
41 export default MoreFullDayEvent;