text: 
  import React from 'react';
  import { useHistory } from 'react-router-dom';
  
  import {
      Card,
      Row,
      Col,
    
  } from "reactstrap";
  
  const CourseSuccess = () => {
      const history = useHistory();
      // const AllCoursePath = () => {
      //     history.push('/admin/AllCourse')
      // }
      setTimeout(() => {
          history.push('/admin/AllCourse')
      }, 1000)
  
    return (
      <>
        <div className="content">
          <Row>
            <Col md="2"></Col>
            <Col md="8">
              <Card>
                <div className="bg-success">
                  <br />
                  <br />
                  <br />
                    <img
                      alt="..."
                      className="mx-auto d-block"
                      height="100px"
                      width="100px"
                      src={require("assets/img/success-logo.png").default}
                    />
                  <br />
                  <br />
                  <br />
                </div>
                <hr />
                <div>
                  <br />
                  <br />
                  <h3 className="text-center">Course Added Successfull</h3>
                  {/* <p className="text-center">Click Here to go to All Courses Page.</p>
                  <Button className="btn btn-success mx-auto d-block" onClick={AllCoursePath}>Click Me</Button> */}
                  <br />
                  <br />
                </div>
                              
              </Card>
            </Col>
            <Col md="2"></Col>
          </Row>
        </div>
        
      </>
    );
      
  }
  
  export default CourseSuccess;
  