import React from "react";
import PropTypes from "prop-types";
import { Oval } from "./types/oval";
import { DualRing } from "./types/dual-ring";
import { Rombs } from "./types/rombs";
import Text from "../text";
const Loader = (props) => {
const { type, color, size, label, className, style, id, theme } = props;
const svgRenderer = (type) => {
switch (type) {
case "oval":
return ;
case "dual-ring":
return ;
case "rombs":
return ;
default:
return (
{label}
);
}
};
return (
{svgRenderer(type)}
);
};
Loader.propTypes = {
/** Font color */
color: PropTypes.string,
/** Type loader */
type: PropTypes.oneOf(["base", "oval", "dual-ring", "rombs"]),
/** Font size */
size: PropTypes.string,
/** Text label */
label: PropTypes.string,
/** Class name */
className: PropTypes.string,
/** Accepts id */
id: PropTypes.string,
/** Accepts css style */
style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
};
Loader.defaultProps = {
type: "base",
size: "40px",
label: "Loading content, please wait.",
};
export default Loader;