import { CardTableItem , TVerticalHeader } from '../../components/cardTable' ; export const useCardsTableEffects = < VerticalHeaderId , HeaderId > ( verticalHeaders , rows ) => { const orderedRows = verticalHeaders . map ( ( header ) => rows . find ( ( row ) => row [ 0 ] . verticalHeaderId === header . id ) ) ; return { orderedRows } ; } ;