interface AuthMessageProps {
  type: "error" | "success";
  text: string;
}

export function AuthMessage({ type, text }: AuthMessageProps): JSX.Element {
  return (
    <p className={`z-login-msg z-login-msg--${type}`} role={type === "error" ? "alert" : undefined}>
      {text}
    </p>
  );
}
