(props: CellProps)
| 7 | import {useCell} from './primitives.ts'; |
| 8 | |
| 9 | export const CellView = (props: CellProps): JSXElement => { |
| 10 | const cell = useCell( |
| 11 | () => props.tableId, |
| 12 | () => props.rowId, |
| 13 | () => props.cellId, |
| 14 | () => props.store, |
| 15 | ); |
| 16 | return ( |
| 17 | <> |
| 18 | {wrap( |
| 19 | EMPTY_STRING + (getValue(cell) ?? EMPTY_STRING), |
| 20 | undefined, |
| 21 | props.debugIds, |
| 22 | props.cellId, |
| 23 | )} |
| 24 | </> |
| 25 | ); |
| 26 | }; |