This commit is contained in:
2026-01-14 18:49:33 +01:00
parent 558bcbd946
commit f29ceacb51
57 changed files with 237 additions and 66 deletions

View File

@@ -3,12 +3,16 @@ import { Text, View } from '@react-pdf/renderer';
import { styles } from '../styles';
export function Section(props: { title: string; children: React.ReactNode }): React.ReactElement {
export function Section(props: {
title: string;
children: React.ReactNode;
boxed?: boolean;
}): React.ReactElement {
const boxed = props.boxed ?? true;
return (
<View style={styles.section}>
<View style={boxed ? styles.section : styles.sectionPlain}>
<Text style={styles.sectionTitle}>{props.title}</Text>
{props.children}
</View>
);
}