import { BudgetUpdate } from '../../types/budgetUpdate';
import './BudgetUpdatesTable.css';
function BudgetUpdatesTable({ budgetUpdates }: Props) {
return (
| Date |
Quantity |
Period |
{ budgetUpdates.map(Row) }
);
}
function Row(budgetUpdate: BudgetUpdate) {
return (
| {budgetUpdate.date.format("DD Mm YYYY")} |
{budgetUpdate.newQuantity.toString()} |
{budgetUpdate.newPeriod} |
)
}
type Props = {
budgetUpdates: BudgetUpdate[];
}
export { BudgetUpdatesTable };