import React from "react"; import ContentLoader from "react-content-loader"; import PropTypes from "prop-types"; import { LoaderStyle } from "../../../constants"; const RectangleLoader = ({ title, x, y, borderRadius, width, height, ...rest }) => ( ); RectangleLoader.propTypes = { title: PropTypes.string, x: PropTypes.string, y: PropTypes.string, width: PropTypes.string, height: PropTypes.string, borderRadius: PropTypes.string, backgroundColor: PropTypes.string, foregroundColor: PropTypes.string, backgroundOpacity: PropTypes.number, foregroundOpacity: PropTypes.number, speed: PropTypes.number, animate: PropTypes.bool, }; RectangleLoader.defaultProps = { title: LoaderStyle.title, x: "0", y: "0", width: "100%", height: "32", borderRadius: LoaderStyle.borderRadius, backgroundColor: LoaderStyle.backgroundColor, foregroundColor: LoaderStyle.foregroundColor, backgroundOpacity: LoaderStyle.backgroundOpacity, foregroundOpacity: LoaderStyle.foregroundOpacity, speed: LoaderStyle.speed, animate: LoaderStyle.animate, }; export default RectangleLoader;