import React from "react";
import classNames from "classnames";
import { Box } from "../Box";
import { Svg } from "../Svg";
import { bem } from "../../utilities/bem";
import { Icon, ICON_TYPE } from "../Icon";
const cn = "ArrowButton";
const Arrow = () => (
);
export interface ArrowButtonProps {
children?: string;
as?: any;
className?: string;
disabled?: boolean;
loading?: boolean;
[key: string]: any;
}
export const ArrowButton = ({
children,
as: Component = "a",
className,
disabled,
loading,
...rest
}: ArrowButtonProps) => {
const isDisabled = disabled || loading;
return (
{children}
{loading ? (
) : (
)}
);
};