mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
22 lines
619 B
JavaScript
22 lines
619 B
JavaScript
import { PLUGIN_ID } from './send-reminders-constants';
|
|
|
|
export const name = 'SendRemindersThreadListExtension';
|
|
|
|
export function cssClassNamesForThreadListItem(thread) {
|
|
const { shouldNotify } = thread.metadataForPluginId(PLUGIN_ID) || {};
|
|
if (shouldNotify) {
|
|
return 'thread-list-reminder-item';
|
|
}
|
|
return '';
|
|
}
|
|
|
|
export function cssClassNamesForThreadListIcon(thread) {
|
|
const { expiration, shouldNotify } = thread.metadataForPluginId(PLUGIN_ID) || {};
|
|
if (shouldNotify) {
|
|
return 'thread-icon-reminder-triggered';
|
|
}
|
|
if (expiration) {
|
|
return 'thread-icon-reminder-pending';
|
|
}
|
|
return '';
|
|
}
|