/*
* Copyright 2020-2021 AskChristee, LLC. All rights reserved.
*/
import { StyleSheet, View, Text } from "@react-pdf/renderer";
import React, { Fragment } from "react";
import { PdfCash, PdfPercent } from "../../../atoms";
import { TAmortizationResponse } from "../../../../types/api";
const styles = StyleSheet.create({
row: {
flexDirection: "row",
height: 16,
},
acalc: {
width: "12%",
fontSize: 9,
textAlign: "left",
},
});
const PdfRow = ({ results }: TAmortizationResponse) => {
const txtHeader = Object.fromEntries(Object.entries(results).slice(2));
const mad = Object.values(txtHeader);
const rows = mad.map((item) => (
{item[0]}
{item[1]}
));
return {rows};
};
export default PdfRow;