@handie/squirtle
Version:
Widgets for Handie-React
8 lines (7 loc) • 352 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { BooleanFieldStructuralWidget } from 'handie-react/dist/widgets/class';
export default class SwitchReadBooleanFieldWidget extends BooleanFieldStructuralWidget {
render() {
return _jsx("span", { children: this.props.value ? this.positiveLabel : this.negativeLabel }, void 0);
}
}