import React from "react";
import { Loading, LoadingType } from "./styled";

interface TYLoadingProps {
  type?: LoadingType;
  size?: number;
  style?: React.CSSProperties;
  className?: string;
}

export const TYLoading = (props: TYLoadingProps) => {
  const { type, size, ...restProps } = props;

  return <Loading type={type} size={size} {...restProps} />;
};
