All files / src/features/dashboard/components transaction-card.tsx

100% Statements 4/4
100% Branches 2/2
100% Functions 1/1
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33            3x             3x       18x                       3x      
import { TransactionTable } from '@/features/transaction/components/transaction-table';
import { DashboardCardWrapper } from './shared/dashboard-card-wrapper';
import { DEFAULT_ACTION_ITEMS } from './shared/dashboard-types';
import type { MenuItemConfig } from '@/components/action-menu';
 
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
('use memo');
 
interface TransactionCardProps {
  maxTransactions?: number;
  actionItems?: MenuItemConfig[];
}
 
export const TransactionCard = ({
  maxTransactions = 5,
  actionItems = DEFAULT_ACTION_ITEMS,
}) => {
  return (
    <DashboardCardWrapper
      title="Transactions"
      actionItems={actionItems}
      contentClassName=""
      className="mt-8"
    >
      <TransactionTable maxTransactions={maxTransactions} />
    </DashboardCardWrapper>
  );
};
 
TransactionCard.displayName = 'TransactionCard';
 
export type { TransactionCardProps };