{
e.stopPropagation();
setFilter((prev: any) => ({ ...prev, from: from }));
}}
>
{from}
{
e.stopPropagation();
setFilter((prev: any) => ({ ...prev, account_ids: [account_id], mailbox_ids: undefined }));
}}
>
{accountPrefix}
/
{
e.stopPropagation();
setFilter((prev: any) => ({ ...prev, account_ids: [account_id], mailbox_ids: [mailbox_id] }));
}}
>
{mailbox_name}
);
},
meta: { className: 'text-left text-xs' },
},
{
accessorKey: "to",
header: t('search.to'),
cell: ({ row }) => {
const recipients: string[] = row.original.to || [];
const { setFilter } = useSearchMessages();
const MAX_VISIBLE = 2;
const visible = recipients.slice(0, MAX_VISIBLE);
const hidden = recipients.slice(MAX_VISIBLE);
const handleClick = (e: React.MouseEvent, email: string) => {
e.stopPropagation();
setFilter((prev: Record