File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ "use client" ;
2+
3+ import { useSyncExternalStore } from "react" ;
4+
5+ const emptySubscribe = ( ) => ( ) => { } ;
6+
7+ export default function CurrentYear ( ) {
8+ const year = useSyncExternalStore (
9+ emptySubscribe ,
10+ ( ) => new Date ( ) . getFullYear ( ) ,
11+ ( ) => null ,
12+ ) ;
13+
14+ return year ;
15+ }
Original file line number Diff line number Diff line change 11import Image from "next/image" ;
2+ import CurrentYear from "./current-year" ;
23
34export default function Home ( ) {
45 return (
@@ -77,7 +78,7 @@ export default function Home() {
7778 { /* ── Footer ────────────────────────────────────────────── */ }
7879 < footer className = "relative z-10 pb-8 text-center" >
7980 < p className = "text-zinc-600 text-sm" >
80- © { new Date ( ) . getFullYear ( ) } Python Colombia
81+ © < CurrentYear /> Python Colombia
8182 < span className = "mx-2 text-zinc-700" > ·</ span >
8283 Comunidad de Python en Colombia
8384 </ p >
You can’t perform that action at this time.
0 commit comments