text: import React from "react";
  // nodejs library to set properties for template_components
  import PropTypes from "prop-types";
  
  // @material-ui/core template_components
  import {makeStyles} from "@material-ui/core/styles";
  import LinearProgress from "@material-ui/core/LinearProgress";
  // core template_components
  import styles from "assets/jss/material-kit-react/components/customLinearProgressStyle.js";
  
  const useStyles = makeStyles(styles);
  
  export default function CustomLinearProgress(props) {
    const classes = useStyles();
    const { color, ...rest } = props;
    return (
      <LinearProgress
        {...rest}
        classes={{
          root: classes.root + " " + classes[color + "Background"],
          bar: classes.bar + " " + classes[color]
        }}
      />
    );
  }
  
  CustomLinearProgress.defaultProps = {
    color: "gray"
  };
  
  CustomLinearProgress.propTypes = {
    color: PropTypes.oneOf([
      "primary",
      "warning",
      "danger",
      "success",
      "info",
      "rose",
      "gray"
    ])
  };
  