import { ActionType } from "@/generated/prisma/enums";

// Action types that support delayed execution
const SUPPORTED_DELAYED_ACTIONS: ActionType[] = [
  ActionType.ARCHIVE,
  ActionType.LABEL,
  ActionType.REPLY,
  ActionType.SEND_EMAIL,
  ActionType.FORWARD,
  ActionType.MARK_READ,
  ActionType.STAR,
  ActionType.MOVE_FOLDER,
];

export function canActionBeDelayed(actionType: ActionType): boolean {
  return SUPPORTED_DELAYED_ACTIONS.includes(actionType);
}
