'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const getBorderAccent = (variant) => {
  switch (variant) {
    case "left-accent":
      return "borderLeftColor";
    case "top-accent":
      return "borderTopColor";
    default:
      return "";
  }
};
const getAlertStyle = ({ variant, status }) => {
  const borderAccent = getBorderAccent(variant);
  const borderNoAccent = borderAccent === "borderTopColor" ? "borderLeft" : "borderTop";
  const errorStyle = {
    [borderAccent]: "red.500",
    [borderNoAccent]: "1px solid var(--chakra-colors-red-400)",
    borderRight: "1px solid var(--chakra-colors-red-400)",
    borderBottom: "1px solid var(--chakra-colors-red-400)"
  };
  const loadingStyle = {
    [borderAccent]: "blue.500",
    [borderNoAccent]: "1px solid var(--chakra-colors-blue-400)",
    borderRight: "1px solid var(--chakra-colors-blue-400)",
    borderBottom: "1px solid var(--chakra-colors-blue-400)"
  };
  const successStyle = {
    [borderAccent]: "green.500",
    [borderNoAccent]: "1px solid var(--chakra-colors-green-400)",
    borderRight: "1px solid var(--chakra-colors-green-400)",
    borderBottom: "1px solid var(--chakra-colors-green-400)"
  };
  const warningStyle = {
    [borderAccent]: "orange.500",
    [borderNoAccent]: "1px solid var(--chakra-colors-orange-400)",
    borderRight: "1px solid var(--chakra-colors-orange-400)",
    borderBottom: "1px solid var(--chakra-colors-orange-400)"
  };
  const infoStyle = {
    [borderAccent]: "blue.500",
    [borderNoAccent]: "1px solid var(--chakra-colors-blue-400)",
    borderRight: "1px solid var(--chakra-colors-blue-400)",
    borderBottom: "1px solid var(--chakra-colors-blue-400)"
  };
  switch (status) {
    case "error":
      return errorStyle;
    case "loading":
      return loadingStyle;
    case "success":
      return successStyle;
    case "warning":
      return warningStyle;
    case "info":
    default:
      return infoStyle;
  }
};

exports.getAlertStyle = getAlertStyle;
//# sourceMappingURL=alert.helper.cjs.map
