import { TypeEditor } from "../TypeEditor.js";
import { CheckboxView } from "../../../../src/view/elements/CheckboxView.js";

export class ObservedBooleanEditor extends TypeEditor {
    build(parent, field, registry) {

        const ctrl = new CheckboxView({
            value: field.adapter.read(parent, field.name)
        });

        return ctrl;
    }
}
