All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 11s
Build & Deploy / 🧪 QA (push) Successful in 1m25s
Build & Deploy / 🏗️ Build (push) Successful in 2m51s
Build & Deploy / 🚀 Deploy (push) Successful in 16s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 1m18s
Build & Deploy / 🔔 Notify (push) Successful in 2s
Nightly QA / 💨 Smoke & Health (push) Successful in 1m1s
26 lines
748 B
TypeScript
26 lines
748 B
TypeScript
import * as React from 'react';
|
|
import { Text, View } from '@react-pdf/renderer';
|
|
|
|
import { styles } from '../styles';
|
|
|
|
export function Footer(props: { locale: 'en' | 'de'; siteUrl?: string }): React.ReactElement {
|
|
const date = new Date().toLocaleDateString(props.locale === 'en' ? 'en-US' : 'de-DE', {
|
|
year: 'numeric',
|
|
month: 'long',
|
|
day: 'numeric',
|
|
});
|
|
|
|
const siteUrl = props.siteUrl || 'https://klz-cables.com';
|
|
|
|
return (
|
|
<View style={styles.footer} fixed>
|
|
<Text style={styles.footerBrand}>KLZ CABLES</Text>
|
|
<Text style={styles.footerText}>{date}</Text>
|
|
<Text
|
|
style={styles.footerText}
|
|
render={({ pageNumber, totalPages }) => `${pageNumber} / ${totalPages}`}
|
|
/>
|
|
</View>
|
|
);
|
|
}
|