import type { IBlockTableItem, TBlockTableItemType, IBlockTableRow } from "../config/types"; /** * Возвращает ряды из элементов таблицы * @returns */ export const getRowsFromItems = (type: TBlockTableItemType = "tbody", items: IBlockTableItem[] = []): IBlockTableRow[] => { return items.find((item) => item.type === type)?.rows ?? []; };