diff --git a/changelog.d/policyengine-shell.added.md b/changelog.d/policyengine-shell.added.md new file mode 100644 index 0000000..c71e9c0 --- /dev/null +++ b/changelog.d/policyengine-shell.added.md @@ -0,0 +1 @@ +Add canonical PolicyEngine header, footer, and shell components for child applications. diff --git a/src/layout/PolicyEngineFooter.tsx b/src/layout/PolicyEngineFooter.tsx new file mode 100644 index 0000000..bb5add4 --- /dev/null +++ b/src/layout/PolicyEngineFooter.tsx @@ -0,0 +1,26 @@ +import { Footer, type FooterProps } from './Footer'; +import { + DEFAULT_POLICYENGINE_BASE_URL, + getPolicyEngineFooterLinks, + type PolicyEngineCountryId, +} from './PolicyEngineSiteConfig'; + +export interface PolicyEngineFooterProps extends Omit { + country?: PolicyEngineCountryId; + baseUrl?: string; + links?: FooterProps['links']; +} + +export function PolicyEngineFooter({ + country = 'us', + baseUrl = DEFAULT_POLICYENGINE_BASE_URL, + links, + ...props +}: PolicyEngineFooterProps) { + return ( +