25 lines
826 B
TypeScript
25 lines
826 B
TypeScript
import { getTranslations } from "next-intl/server";
|
|
import { CmsInfoPopup } from "@/components/cms-info-popup";
|
|
import { siteSettings } from "@/lib/services/site-settings";
|
|
|
|
export async function SiteFooter() {
|
|
const hotelName = await siteSettings.get("hotel_name", "Atom");
|
|
const year = new Date().getFullYear();
|
|
const t = await getTranslations("footer");
|
|
|
|
return (
|
|
<footer
|
|
className="mt-auto flex min-h-14 w-full flex-col items-center justify-center gap-1 px-4 py-3 text-sm md:flex-row md:gap-3 md:px-8"
|
|
style={{
|
|
backgroundColor: "var(--color-surface)",
|
|
color: "var(--color-text-muted-readable, var(--color-text-muted))",
|
|
}}
|
|
>
|
|
<div className="md:font-semibold text-[12px] md:text-[14px]">
|
|
{t("copyright", { year, hotel: hotelName ?? "Atom" })}
|
|
</div>
|
|
<CmsInfoPopup />
|
|
</footer>
|
|
);
|
|
}
|