UNPKG

422 BTypeScriptView Raw
1import * as React from 'react';
2import type { CellType, ColumnType, DataIndex } from '../interface';
3export default function useCellRender<RecordType>(record: RecordType, dataIndex: DataIndex<RecordType>, renderIndex: number, children?: React.ReactNode, render?: ColumnType<RecordType>['render'], shouldCellUpdate?: ColumnType<RecordType>['shouldCellUpdate']): [React.ReactNode, CellType<RecordType>] | [React.ReactNode];