fix: MailList imports - useState + remove duplicate Mail type

This commit is contained in:
Agent Zero
2026-07-30 18:04:37 +02:00
parent 2f4f9803b9
commit 7cc07c6e55
+1 -2
View File
@@ -3,7 +3,7 @@
* No pagination, no sort header — sorting is in toolbar SortPanel.
*/
import React, { useRef, useEffect } from 'react';
import React, { useState, useRef, useEffect } from 'react';
import clsx from 'clsx';
import { useTranslation } from 'react-i18next';
import type { Mail } from '@/api/mail';
@@ -12,7 +12,6 @@ import { EmptyState } from '@/components/ui/EmptyState';
import { Loader2, Paperclip, Star, ChevronDown, ChevronRight } from 'lucide-react';
import { formatSmartDate } from '@/utils/date';
import type { GroupedMails } from '@/components/mail/MailGroupPanel';
import type { Mail } from '@/api/mail';
export interface MailListProps {
mails: Mail[];