import { Document, Image, Page, StyleSheet, Text } from '@react-pdf/renderer';
import React, { Fragment } from 'react';
import logo from '../../../../images/christee-logo.png';
import { AgentOfficerDocId, PdfReportSubtitle, PdfReportTitle, ReportHeader } from '../../../atoms';
import PdfClosingAcalc from '../ClosingAcalc';
import PdfClosingBcalc from '../ClosingBcalc';
import PdfMessageAcalc from './PdfMessageAcalc';
import PdfMessageBcalc from './PdfMessageBcalc';
import PdfReportCashAcalc from './PdfReportCashAcalc';
import PdfReportCashBcalc from './PdfReportCashBcalc';
/**
* TODO: PDF fails when import atoms/styles
*
* import { StylesFromAtoms } from "../atoms/Styles";
* const styles = StylesFromAtoms;
*/
const styles = StyleSheet.create({
body: {
paddingTop: 10,
paddingBottom: 25,
paddingHorizontal: 30,
},
pageNumber: {
position: 'absolute',
fontSize: 9,
bottom: 15,
left: 0,
right: 0,
textAlign: 'center',
color: 'black',
},
header: {
fontSize: 12,
marginBottom: 20,
textAlign: 'center',
color: 'grey',
},
logo: {
width: 65,
height: 15,
position: 'absolute',
bottom: 11,
left: 65,
},
copy: {
fontSize: 9,
position: 'absolute',
bottom: 13,
left: 10,
},
});
const ContainerFinal = ({ dat, title, program }: any) => {
return (
{dat.bCalc && (
Powered By
`${pageNumber} / ${totalPages}`} fixed />
Powered By
`${pageNumber} / ${totalPages}`} fixed />
Powered By
`${pageNumber} / ${totalPages}`} fixed />
)}
{!dat.bCalc && (
Powered By
`${pageNumber} / ${totalPages}`} fixed />
Powered By
`${pageNumber} / ${totalPages}`} fixed />
)}
);
};
const BuyersChoice = ({ dat }: any) => {
return (
{dat.conventional.aCalc && }
{dat.fha.aCalc && }
{dat.va.aCalc && }
{dat.usda.aCalc && }
);
};
export default BuyersChoice;