import React from "react";
import styles from "./Transaction.module.sass"
export default function Transaction(props) {
// console.log(props);
return (
{props.date}
{props.type}
{props.payee}
{props.descr}
{props.parts &&
props.parts.map((part, index) => {
return (
<>
{part.extract ? : }
{part.account || " "}
{part.amount || " "}
{part.currency || " "}
>
);
})}
);
}