Files
nice-app-web/src/entities/transaction/ui/escrow-list.tsx
focp212@naver.com 73d3f7008f 거래내역 관련
2025-09-10 09:38:20 +09:00

31 lines
655 B
TypeScript

import { EscrowListProps } from '../model/types';
import { ListDateGroup } from './list-date-group';
export const EscrowList = ({
transactionCategory,
listItems
}: EscrowListProps) => {
const getListDateGroup = () => {
let rs = [];
for (const [key, value] of Object.entries(listItems)) {
rs.push(
<ListDateGroup
transactionCategory={ transactionCategory }
key={ key }
date={ key }
items={ value }
></ListDateGroup>
);
}
return rs;
};
return (
<>
<div className="transaction-list">
{ getListDateGroup() }
</div>
</>
);
};