import { Alert } from "antd";
import React from "react";
import { logImEXEvent } from "../../firebase/firebase.utils";

export default function AlertComponent(props) {
  if (props.type === "error") logImEXEvent("alert_render", { ...props });
  return <Alert {...props} />;
}
