({
valueId,
store,
className,
showType,
}: ValueProps & {readonly className?: string; readonly showType?: boolean})
| 6 | import {EDITABLE} from './common/index.tsx'; |
| 7 | |
| 8 | export const EditableValueView: typeof EditableValueViewDecl = ({ |
| 9 | valueId, |
| 10 | store, |
| 11 | className, |
| 12 | showType, |
| 13 | }: ValueProps & {readonly className?: string; readonly showType?: boolean}) => { |
| 14 | const [value, setValue] = useValueState(valueId, store); |
| 15 | return ( |
| 16 | <EditableThing |
| 17 | thing={value} |
| 18 | onThingChange={setValue} |
| 19 | className={className ?? EDITABLE + VALUE} |
| 20 | showType={showType} |
| 21 | hasSchema={useStoreOrStoreById(store)?.hasValuesSchema} |
| 22 | /> |
| 23 | ); |
| 24 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…