import { FC, useEffect, useState } from "react";
import Footer from "../components/home/footer/Footer";
import InternalPageHeader from "../components/internalPageHeader/InternalPageHeader";
import * as CategoryAPI from "./api/category";
import * as commonAPI from "./api/common";
import styles from "./fotterPage.module.scss";
import cx from "classnames";
import MediaQuery from "react-responsive";
import MobileHeader from "../components/home/mobile/mobileHeader/MobileHeader";
import MobileFooter from "../components/home/mobile/mobileFooter/MobileFooter";
import { baseUrl } from "../constants/urls";
import { title } from "process";
import SEOHead from "../components/SEOHead";
import { seoDataMap } from "../mockData/seoData";
const seoData = seoDataMap['copyRight'];
const CopyRight: FC<any> = () => {
  const [category, setCategory] = useState([]);
  const [categoryTree, setCategoryTree] = useState([]);
  const [stateArray,setStateArray] = useState([]);
  useEffect(() => {
    CategoryAPI.fetchCategory().then((res) => {
      setCategory(res);
    });
    CategoryAPI.fetchCategoryTree().then((res) => {
      setCategoryTree(res.categories);
    });
    commonAPI.getRequest(`${baseUrl}/api/indian-states`).then((res)=>{
      setStateArray(res?.data)
    })
  }, []);
  return (
    <>
      <SEOHead {...seoData} />

     <MediaQuery maxWidth={768}>
        <MobileHeader stateArray={stateArray}/>
      </MediaQuery>
      <MediaQuery minWidth={769}>
      <InternalPageHeader catagories={category} categoryTree={categoryTree} stateArray={stateArray}/>
      </MediaQuery>
      <div className={cx("container", styles.mobileView)}>
        <h1 className={cx(styles.aboutUsTitle,"py-2")}>Copyright Policy</h1>
        <p className="pl-2">
          Copyright Policy (“Policy”) applies to the indispare.com website
          (“Website”), “Indispare” mobile application (“Mobile Application”) and
          any of their related products and services (collectively, “Services”)
          and outlines how this Website operator and Mobile Application
          developer (“Operator”, “we”, “us” or “our”) addresses copyright
          infringement notications and how you (“you” or “your”) may submit a
          copyright infringement complaint.
          <br />
          Protection of intellectual property is of utmost importance to us and
          we ask our users and their authorized agents to do the same. It is our
          policy to expeditiously respond to clear notications of alleged
          copyright infringement that comply with the United States Digital
          Millennium Copyright Act (“DMCA”) of 1998, the text of which can be
          found at the U.S. Copyright One website.
        </p>
        <h6>16/08/2022, 16:34 View DMCA policy</h6>
        <div className={cx("pl-1",styles.subContent)}>Table of contents</div>
        <ul className={cx("pl-2",styles.listPage)}>
          <li>What to consider before submitting a copyright complain</li>
          <li>Notications of infringement</li>
          <li>Changes and amendments</li>
          <li>Reporting copyright infringement</li>
        </ul>
        <h3>What to consider before submitting a copyright complaint</h3>
        <p className="pl-2">
          Before submitting a copyright complaint to us, consider whether the
          use could be considered fair use. Fair use states that brief excerpts
          of copyrighted material may, under certain circumstances, be quoted
          verbatim for purposes such as criticism, news reporting, teaching, and
          research, without the need for permission from or payment to the
          copyright holder. If you have considered fair use, and you still wish
          to continue with a copyright complaint, you may want to reach out to
          the user in question to see if you can resolve the matter directly
          with the user.
          <br />
          Please note that if you are unsure whether the material you are
          reporting is in fact infringing, you may wish to contact an attorney
          before filling a notication with us.
          <br />
          We may, at our discretion or as required by law, share a copy of your
          notication or counter- notication with third parties. If you are
          concerned about your information being forwarded, you may wish to hire
          an agent to report infringing material for you.
        </p>
        <h3>Notications of infringement</h3>
        <p className="pl-2">
          Filing a DMCA complaint is the start of a pre-dened legal process.
          Your complaint will be reviewed for accuracy, validity, and
          completeness. Our response may include the removal or restriction of
          access to allegedly infringing material. We may also require a court
          order from a court of competent jurisdiction, as determined by us in
          our sole discretion, before we take any action. If we remove or
          restrict access to materials or terminate an account in response to a
          Notication
        </p>
        <div className={cx(styles.textSubContainer,"my-2")}>16/08/2022, 16:34 View DMCA policy</div>
        <p className="pl-2">
          If we remove or restrict access to materials or terminate an account
          in response to a Notication of alleged infringement, we will make a
          good faith effort to contact the affected user with information
          concerning the removal or restriction of access.
        </p>
        <div className={cx(styles.textSubContainer,"my-2")}>Changes and amendments</div>
        <p className="pl-2">
          We reserve the right to modify this Policy or its terms related to the
          Services at any time at our discretion. When we do, we will send you
          an email to notify you. We may also provide notice to you in other
          ways at our discretion, such as through the contact information you
          have provided.
        </p>
        <p className="pl-2">
          An updated version of this Policy will be effective immediately upon
          the posting of the revised Policy unless otherwise specied. Your
          continued use of the Services after the effective date of the revised
          Policy (or such other act specied at that time) will constitute your
          consent to those changes.
        </p>
        <div className={cx(styles.textSubContainer,"my-2")}>Reporting copyright infringement</div>
        <p className="pl-2">
          If you would like to notify us of the infringing material or activity,
          we encourage you to contact us using the details below:
          <br />
          contact@indispare.com
          <br />
          This document was last updated on August 16, 2022
        </p>
      </div>
      <Footer stateArray={stateArray}/>
      <MediaQuery maxWidth={768}>
        <MobileFooter stateArray={stateArray}/>
      </MediaQuery>
    </>
  );
};
export default CopyRight;
