import { keyframes as t } from "styled-components";
const o = (r) => {
  switch (r) {
    case "bottom-right":
    case "top-right":
      return t`
          from { transform: translateX(100%); opacity: 0; }
          to { transform: translateX(0%); opacity: 1; }
        `;
    case "top-left":
    case "bottom-left":
      return t`
          from { transform: translateX(-100%); opacity: 0; }
          to { transform: translateX(0%); opacity: 1; }
        `;
    case "top":
      return t`
          from { transform: translateY(-100%); opacity: 0; }
          to { transform: translateY(0%); opacity: 1; }
        `;
    case "bottom":
      return t`
          from { transform: translateY(100%); opacity: 0; }
          to { transform: translateY(0%); opacity: 1; }
        `;
    default:
      return "Invalid position!";
  }
}, n = (r) => {
  switch (r) {
    case "bottom-right":
    case "top-right":
      return t`
          from { transform: translateX(0%); opacity: 1; }
          to { transform: translateX(100%); opacity: 0; }
        `;
    case "top-left":
    case "bottom-left":
      return t`
          from { transform: translateX(0%); opacity: 1; }
          to { transform: translateX(-100%); opacity: 0; }
        `;
    case "top":
      return t`
          from { transform: translateY(0%); opacity: 1; }
          to { transform: translateY(-100%); opacity: 0; }
        `;
    case "bottom":
      return t`
          from { transform: translateY(0%); opacity: 1; }
          to { transform: translateY(100%); opacity: 0; }
        `;
    default:
      return "Invalid position!";
  }
};
export {
  o as getEnteringAnimation,
  n as getExitingAnimation
};
