feat(FE): Add PDF table components for report export

This commit is contained in:
rstubryan
2026-01-27 16:23:29 +07:00
parent b7085f5d2a
commit 142ce7fe3a
5 changed files with 470 additions and 0 deletions
@@ -0,0 +1,21 @@
'use client';
import { View, StyleSheet } from '@react-pdf/renderer';
import { PdfColumn } from './PdfThead';
const styles = StyleSheet.create({
table: {
borderWidth: 1,
borderColor: '#000000',
marginBottom: 15,
},
});
interface PdfTableProps {
columns: PdfColumn[];
children: React.ReactNode;
}
export const PdfTable = ({ columns, children }: PdfTableProps) => {
return <View style={styles.table}>{children}</View>;
};