import * as React from "react"; import BaseWidget, { WidgetProps, WidgetState } from "./BaseWidget"; import { WidgetType } from "../constants/WidgetConstants"; import RadioGroupComponent from "../editorComponents/RadioGroupComponent"; import { IOptionProps } from "@blueprintjs/core"; class RadioButtonWidget extends BaseWidget { getPageView() { return ( ); } getWidgetType(): WidgetType { return "RADIO_GROUP_WIDGET"; } } export interface RadioGroupWidgetProps extends WidgetProps { label: string; inline: boolean; selectedValue: string | number; handleRadioChange: (event: React.FormEvent) => void; disabled: boolean; className: string; name: string; options: IOptionProps[]; items: Array<{ label: string; value: number | string; key: string; }>; } export default RadioButtonWidget;