import { Input } from "antd"; import type { IWbw } from "./WbwWord" const { TextArea } = Input; interface IWidget { data: IWbw; onChange?: Function; } const WbwDetailNoteWidget = ({ data, onChange }: IWidget) => { const onTextChange = ( e: React.ChangeEvent ) => { console.log("Change:", e.target.value); if (typeof onChange !== "undefined") { onChange({ field: "note", value: e.target.value }); } }; return ( <>