import React from "react"; import PropTypes from "prop-types"; import { StyledRow } from "./StyledListLoader"; import RectangleLoader from "../RectangleLoader"; const ListItemLoader = ({ id, className, style, withoutFirstRectangle, withoutLastRectangle, ...rest }) => { const { title, borderRadius, backgroundColor, foregroundColor, backgroundOpacity, foregroundOpacity, speed, animate, } = rest; return ( {!withoutFirstRectangle && ( )} {!withoutLastRectangle && ( )} ); }; ListItemLoader.propTypes = { id: PropTypes.string, className: PropTypes.string, style: PropTypes.object, withoutFirstRectangle: PropTypes.bool, withoutLastRectangle: PropTypes.bool, }; ListItemLoader.defaultProps = { id: undefined, className: undefined, style: undefined, withoutFirstRectangle: false, withoutLastRectangle: false, }; export default ListItemLoader;