text: import React from "react";
  
  // reactstrap components
  import { Button, Container } from "reactstrap";
  // core components
  
  function SchoolSubHeader(props) {
    let pageHeader = React.createRef();
  
    React.useEffect(() => {
      if (window.innerWidth > 991) {
        const updateScroll = () => {
          let windowScrollTop = window.pageYOffset / 3;
          
        };
        window.addEventListener("scroll", updateScroll);
        return function cleanup() {
          window.removeEventListener("scroll", updateScroll);
        };
      }
    });
    return (
      <>
        <div className="page-header page-header-small">
          <div
            className="page-header-image"
            style={{
              backgroundImage: "url(" + require("assets/img/bg6.jpg") + ")"
            }}
            ref={pageHeader}
          ></div>
          <div className="content-center">
            <Container>
              <h1 className="title">Joy International College, Kaduna</h1>
              <h2>{ props.subtitle }</h2>
             
            </Container>
          </div>
        </div>
      </>
    );
  }
  
  export default SchoolSubHeader;
  