17 lines
726 B
TypeScript
17 lines
726 B
TypeScript
"use client";
|
|
|
|
import React from "react";
|
|
import { ChurchFooter, Shell } from "@crosscode/ui";
|
|
import { useBranding } from "@/components/BrandingProvider";
|
|
|
|
/**
|
|
* The frame of the public pages (sign in, forgot, reset, signed out, confirm email) with the
|
|
* church's shared footer (1.7.0, WEBSITE-1.0-PLAN §9): its service times, contact and links to its
|
|
* other sites, as on the Website and Cross Events.
|
|
*/
|
|
export function PublicShell({ children }: { children: React.ReactNode }) {
|
|
const branding = useBranding();
|
|
const footer = branding.church ? <ChurchFooter church={branding.church} current="accounts" privacyUrl="/privacy" /> : undefined;
|
|
return <Shell branding={branding} footer={footer}>{children}</Shell>;
|
|
}
|