comparison hg-web/src/components/footer.tsx @ 195:f8f5004a920a

Merging back hg-web-tip
author MrJuneJune <me@mrjunejune.com>
date Tue, 27 Jan 2026 06:51:44 -0800
parents 9f4429c49733
children
comparison
equal deleted inserted replaced
189:14cc84ba35a0 195:f8f5004a920a
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">&copy; 2026 June Park</span>
26 </div>
27 </footer>
28 );
29 }
30
31 export { Footer };