({
tableId,
rowId,
cellId,
store,
className,
showType,
}: CellProps & {readonly className?: string; readonly showType?: boolean})
| 6 | import {EDITABLE} from './common/index.tsx'; |
| 7 | |
| 8 | export const EditableCellView: typeof EditableCellViewDecl = ({ |
| 9 | tableId, |
| 10 | rowId, |
| 11 | cellId, |
| 12 | store, |
| 13 | className, |
| 14 | showType, |
| 15 | }: CellProps & {readonly className?: string; readonly showType?: boolean}) => { |
| 16 | const [cell, setCell] = useCellState(tableId, rowId, cellId, store); |
| 17 | return ( |
| 18 | <EditableThing |
| 19 | thing={cell} |
| 20 | onThingChange={setCell} |
| 21 | className={className ?? EDITABLE + CELL} |
| 22 | showType={showType} |
| 23 | hasSchema={useStoreOrStoreById(store)?.hasTablesSchema} |
| 24 | /> |
| 25 | ); |
| 26 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…