Advertisement
justfrenzy

CrackFlix - frontend /src/components/App/Footer.tsx

May 12th, 2024
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TypeScript 1.44 KB | Source Code | 0 0
  1. import { useContext } from 'react';
  2. import { AppContext, AppContextTypes } from '../../utils/AppContext';
  3. import NoCopyright from './NoCopyright';
  4. import { Image, Link } from '@nextui-org/react';
  5.  
  6. const Footer = () => {
  7.     const { theme, themeStyle, systemTheme } =
  8.         useContext<AppContextTypes>(AppContext);
  9.  
  10.     const themeKey: AppContextTypes['theme'] =
  11.         theme === 'system' ? (systemTheme ? 'dark' : 'light') : theme;
  12.  
  13.     return (
  14.         <>
  15.             <div
  16.                 className={`bg-gradient-to-bl  ${themeStyle[themeKey as keyof typeof themeStyle]} `}
  17.             >
  18.                 <div className="flex justify-center items-center flex-col gap-2 p-2">
  19.                     <div className="flex justify-center items-center flex-col w-full">
  20.                         <a>CrackFlix</a>
  21.                         <p>
  22.                             <p>
  23.                                 © {new Date().getFullYear()} CrackFlix. All
  24.                                 rights reserved.
  25.                             </p>
  26.                             <br />
  27.                             <Link
  28.                                 href="//www.dmca.com/Protection/Status.aspx?ID=76f2a507-2f2f-4315-9fcb-41980395124e"
  29.                                 title="DMCA.com Protection Status"
  30.                                 target="_blank"
  31.                                 className="dmca-badge"
  32.                             >
  33.                                 <Image
  34.                                     src="https://images.dmca.com/Badges/dmca_protected_sml_120m.png?ID=76f2a507-2f2f-4315-9fcb-41980395124e"
  35.                                     alt="DMCA.com Protection Status"
  36.                                 />
  37.                             </Link>
  38.  
  39.                             <br />
  40.                             <Link className='cursor-pointer' href='/'>CrackFlix</Link>
  41.                         </p>
  42.                     </div>
  43.                     <NoCopyright />
  44.                 </div>
  45.             </div>
  46.         </>
  47.     );
  48. };
  49.  
  50. export default Footer;
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement