Files
DefectingCat.github.io/components/Footer.tsx
DefectingCat 7954c974da Add memo to components
Add suspense for dynamic import
2022-12-06 09:33:06 +08:00

29 lines
695 B
TypeScript

import { memo } from 'react';
import { FiGithub } from 'react-icons/fi';
const nowDay = new Date().getFullYear();
const Footer = () => {
return (
<>
<footer className="max-w-6xl px-4 mx-auto xl:px-0">
<div className="h-[2px] bg-slate-500"></div>
<div className="flex items-center justify-between py-4">
<div>&copy; {nowDay} Powered by Next.js 💙 xfy</div>
<div>
<a
href="https://github.com/DefectingCat"
target="_blank"
rel="noreferrer"
>
<FiGithub />
</a>
</div>
</div>
</footer>
</>
);
};
export default memo(Footer);