import { AlertTriangle, ArrowDown, ArrowUp, Minus } from "lucide-react";
const messagePriorities = ["low", "normal", "high", "urgent"];
const messagePriorityMeta = {
  low: { labelKey: "messages.priority.low", fallback: "Low", icon: ArrowDown },
  normal: { labelKey: "messages.priority.normal", fallback: "Normal", icon: Minus },
  high: { labelKey: "messages.priority.high", fallback: "High", icon: ArrowUp },
  urgent: { labelKey: "messages.priority.urgent", fallback: "Urgent", icon: AlertTriangle }
};
function getMessagePriorityOptions(t) {
  return messagePriorities.map((value) => {
    const meta = messagePriorityMeta[value];
    return {
      value,
      label: t(meta.labelKey, meta.fallback),
      icon: meta.icon
    };
  });
}
function getMessagePriorityLabel(value, t) {
  const meta = messagePriorityMeta[value];
  return t(meta.labelKey, meta.fallback);
}
function getNextMessagePriority(value) {
  const currentIndex = messagePriorities.indexOf(value);
  const nextIndex = (currentIndex + 1) % messagePriorities.length;
  return messagePriorities[nextIndex];
}
function getPreviousMessagePriority(value) {
  const currentIndex = messagePriorities.indexOf(value);
  const previousIndex = (currentIndex - 1 + messagePriorities.length) % messagePriorities.length;
  return messagePriorities[previousIndex];
}
export {
  getMessagePriorityLabel,
  getMessagePriorityOptions,
  getNextMessagePriority,
  getPreviousMessagePriority,
  messagePriorities
};
//# sourceMappingURL=message-priority.js.map
