diff --git a/components/email/email-hover-actions.tsx b/components/email/email-hover-actions.tsx index 3d8a9441..7c17334d 100644 --- a/components/email/email-hover-actions.tsx +++ b/components/email/email-hover-actions.tsx @@ -9,6 +9,7 @@ import { useTranslations } from "next-intl"; interface EmailHoverActionsProps { email: Email; + backgroundClassName?: string; onToggleStar?: () => void; onMarkAsRead?: (read: boolean) => void; onDelete?: () => void; @@ -63,6 +64,7 @@ const CORNER_CLASSES = { export function EmailHoverActions({ email, + backgroundClassName = "bg-muted", onToggleStar, onMarkAsRead, onDelete, @@ -77,6 +79,7 @@ export function EmailHoverActions({ const isUnread = !email.keywords?.$seen; const isStarred = email.keywords?.$flagged; + const hoverBackgroundClassName = backgroundClassName; if (hoverActions.length === 0) return null; @@ -144,7 +147,10 @@ export function EmailHoverActions({ CORNER_CLASSES[hoverActionsCorner], )} > -