1 import { c } from 'ttag';
3 import { Table, TableBody, TableHeader, TableRow } from '@proton/components';
4 import type { VisualCalendar } from '@proton/shared/lib/interfaces/calendar';
6 import CalendarIcon from '../../components/CalendarIcon';
8 const CalendarTableRow = ({ Name, Color }: VisualCalendar) => {
12 <div key={0} className="flex items-center flex-nowrap">
13 <CalendarIcon color={Color} className="shrink-0 mr-4" />
14 <span className="text-ellipsis" title={Name}>
24 calendars: VisualCalendar[];
26 const CalendarTableRows = ({ calendars = [] }: Props) => {
29 <TableHeader cells={[c('Header').t`Name`]} />
31 {calendars.map((calendar) => {
32 return <CalendarTableRow key={calendar.ID} {...calendar} />;
39 export default CalendarTableRows;