Fix runttime
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user