import { ComponentPropsWithRef } from "react";

type ButtonLoadingProps = ComponentPropsWithRef<"span">;

export const ButtonLoading = (props: ButtonLoadingProps) => {
  const { children, ...rest } = props;
  return <span {...rest}>{children}</span>;
};
ButtonLoading.displayName = "ButtonLoading";
