|
193
|
1 import React from 'react';
|
|
|
2
|
|
|
3 interface FooterProps {
|
|
|
4 showCloneUrl?: boolean;
|
|
|
5 cloneUrl?: string;
|
|
|
6 }
|
|
|
7
|
|
|
8 function Footer({
|
|
|
9 showCloneUrl = false,
|
|
|
10 cloneUrl = "hg clone http://zenbu.babocoder.com/repo",
|
|
|
11 }: FooterProps) {
|
|
|
12 const currentYear = new Date().getFullYear();
|
|
|
13
|
|
|
14 return (
|
|
|
15 <footer className="footer">
|
|
|
16 {showCloneUrl && (
|
|
|
17 <div className="clone-box">
|
|
|
18 <div className="clone-box-inner">
|
|
|
19 <span className="clone-label">Clone HTTPS</span>
|
|
|
20 <code className="clone-url">{cloneUrl}</code>
|
|
|
21 </div>
|
|
|
22 </div>
|
|
|
23 )}
|
|
|
24 <div className="footer-content">
|
|
|
25 <span className="footer-text">© 2026 June Park</span>
|
|
|
26 </div>
|
|
|
27 </footer>
|
|
|
28 );
|
|
|
29 }
|
|
|
30
|
|
|
31 export { Footer };
|