import {
    type FC
} from "react";
import type ILoadingProps from "./type";
import stylesheet from "./stylesheet";
import LoadingIcon from "../../assets/svg/loadingIcon";

const Loading: FC<ILoadingProps> = ({
    color = "primary" as keyof NCoreUIKit.IconContentColors,
    customColor,
    size = 22,
    style,
    ...props
}) => {
    return <LoadingIcon
        customColor={customColor}
        color={color}
        size={size}
        style={[
            stylesheet.container,
            style
        ]}
        {...props}
    />;
};
export default Loading;
