"use client"; import Link from "next/link"; import { ChurchFooter } from "@crosscode/ui"; import { appName } from "@/lib/siteConfig"; import { useSiteSettings } from "@/contexts/SiteSettingsContext"; import { useChurch } from "@/contexts/ChurchContext"; import { CookieSettingsButton } from "@/components/shared/CookieSettingsButton"; /** * The public pages' footer. With the church's Accounts connected (3.7.0) it's the shared church * footer (as on the Website and Accounts' pages): name and logo, service times, address, contact, * social links and the church's other sites, with this site's terms and cookie settings below. * `plain`: the dashboard's own footer, as before. */ export const Footer = ({ plain = false }: { plain?: boolean }) => { const { settings } = useSiteSettings(); const church = useChurch(); const displayName = settings.org_name || appName; return ( <> {church && !plain ? ( Terms of Use } /> ) : (

© {new Date().getFullYear()} {displayName}. All rights reserved.

Terms of Use Privacy Policy
)} {/* Spacer so content isn't hidden behind the fixed mobile bottom nav */}