/* * Copyright 2020-2021 AskChristee, LLC. All rights reserved. */ import { Document, Page, StyleSheet, Text, Image } from '@react-pdf/renderer'; import React from 'react'; import { PdfReportLogo, PdfReportTitle } from '../../../atoms'; import PdfRow from './PdfRow'; import PdfRowHeader from './PdfRowHeader'; import PdfSummaryHeader from './PdfSummaryHeader'; import PdfDetailHeader from './PdfDetailHeader'; import logo from '../../../../images/christee-logo.png'; const styles = StyleSheet.create({ body: { paddingTop: 10, paddingBottom: 25, paddingHorizontal: 30, backgroundColor: '#fff', }, pageNumber: { position: 'absolute', fontSize: 9, bottom: 15, left: 0, right: 0, textAlign: 'center', color: 'black', }, image: { width: 70, height: 20, }, header: { fontSize: 12, marginBottom: 20, textAlign: 'center', color: 'grey', }, acalc: { width: '12%', fontSize: 9, textAlign: 'left', }, row: { flexDirection: 'row', height: 16, }, section: { margin: 10, padding: 10, flexGrow: 1, }, logo: { width: 65, height: 15, position: 'absolute', bottom: 11, left: 65, }, copy: { fontSize: 9, position: 'absolute', bottom: 13, left: 10, }, }); function PdfReportContainer({ dat }: any) { console.log('pdfreportcontainer', dat); return ( Powered By `${pageNumber} / ${totalPages}`} fixed /> ); } // since there are two sections, title is not used export default function EquityPdf({ dat }: any) { return ( ); }