Fix runttime

This commit is contained in:
diyaa
2026-03-13 03:56:40 +01:00
parent d1ed5c641b
commit c9e9ae6b90
8 changed files with 75 additions and 35 deletions
+3 -1
View File
@@ -1,5 +1,6 @@
import type { Locale } from "@/lib/i18n";
import type { CommonContent } from "@/content/types";
import { getModeValue } from "@/lib/site";
type SiteFooterProps = {
locale: Locale;
@@ -8,13 +9,14 @@ type SiteFooterProps = {
export default function SiteFooter({ locale, common }: SiteFooterProps) {
const year = new Date().getFullYear();
const commonVariant = getModeValue(common.variants);
return (
<footer className="site-footer">
<div className="container footer-content">
<div className="footer-copy">
<p>{common.footerRights.replace("{year}", String(year))}</p>
<p>{common.footerBuiltWith}</p>
<p>{commonVariant.footerBuiltWith}</p>
</div>
<p className="locale-badge">{locale.toUpperCase()}</p>
</div>