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