mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 06:45:46 +00:00
feat(FE): Add PDF table components for report export
This commit is contained in:
@@ -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>;
|
||||
};
|
||||
Reference in New Issue
Block a user