-
-
No emails in ${this.selectedFolder}
-
- `;
+ return this.renderEmptyState(`No emails in ${this.selectedFolder}`);
+ }
+
+ const actions = [
+ {
+ name: 'View Details',
+ iconName: 'lucide:eye',
+ type: ['doubleClick', 'inRow'] as any,
+ actionFunc: async (actionData: any) => {
+ this.selectedEmail = actionData.item;
+ }
+ }
+ ];
+
+ if (showResend) {
+ actions.push({
+ name: 'Resend',
+ iconName: 'lucide:send',
+ type: ['inRow'] as any,
+ actionFunc: async (actionData: any) => {
+ await this.resendEmail(actionData.item.id);
+ }
+ });
}
return html`