// icons import { AlertTriangle, CheckCircle2, Clock, Copy, ExternalLink, LucideIcon, XCircle } from "lucide-react"; // helpers import { renderFormattedDate } from "helpers/date-time.helper"; export const INBOX_STATUS: { key: string; status: number; icon: LucideIcon; title: string; description: (workspaceSlug: string, projectId: string, issueId: string, snoozedTillDate: Date) => JSX.Element; textColor: (snoozeDatePassed: boolean) => string; bgColor: (snoozeDatePassed: boolean) => string; borderColor: (snoozeDatePassed: boolean) => string; }[] = [ { key: "pending", status: -2, icon: AlertTriangle, title: "Pending", description: () =>
This issue is still pending.
, textColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "text-warning-text-subtle"), bgColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "bg-warning-component-surface-light"), borderColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "border-yellow-500"), }, { key: "declined", status: -1, icon: XCircle, title: "Declined", description: () =>This issue has been declined.
, textColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "text-danger-text-medium"), bgColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "bg-danger-component-surface-dark"), borderColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "border-red-500"), }, { key: "snoozed", status: 0, icon: Clock, title: "Snoozed", description: (workspaceSlug: string, projectId: string, issueId: string, snoozedTillDate: Date = new Date()) => snoozedTillDate < new Date() ? (This issue was snoozed till {renderFormattedDate(snoozedTillDate)}.
) : (This issue has been snoozed till {renderFormattedDate(snoozedTillDate)}.
), textColor: (snoozeDatePassed: boolean = false) => snoozeDatePassed ? "text-danger-text-medium" : "text-neutral-text-medium", bgColor: (snoozeDatePassed: boolean = false) => snoozeDatePassed ? "bg-danger-component-surface-dark" : "bg-primary-solid/10", borderColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "border-red-500" : "border-gray-500"), }, { key: "accepted", status: 1, icon: CheckCircle2, title: "Accepted", description: () =>This issue has been accepted.
, textColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "text-success-text-medium"), bgColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "bg-success-component-surface-dark"), borderColor: (snoozeDatePassed: boolean = false) => (snoozeDatePassed ? "" : "border-green-500"), }, { key: "duplicate", status: 2, icon: Copy, title: "Duplicate", description: (workspaceSlug: string, projectId: string, issueId: string) => (
This issue has been marked as a duplicate of
this issue