mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
14 lines
407 B
TypeScript
14 lines
407 B
TypeScript
import { use } from 'react';
|
|
import { DataGridCellContext } from '../DataGridCellContext.js';
|
|
import { useGridReactiveValue } from '../useGridReactiveValue.js';
|
|
|
|
export interface Props {
|
|
rowIdx: number;
|
|
colIdx: number;
|
|
}
|
|
|
|
export function CellContentRenderer({ rowIdx, colIdx }: Props) {
|
|
const cellContext = use(DataGridCellContext);
|
|
return useGridReactiveValue(cellContext?.cell, rowIdx, colIdx);
|
|
}
|