import { Form, Input} from "antd" export const EditableCell = ({ editing, record, dataIndex, input, isRequired, title, formItemClass, formItemRules, children, initialValue, }) => { const inputNode = input ?? const rules = formItemRules ?? [{ required: isRequired, message: `Please Input ${title}!`, }] const editor = {inputNode} return ( {editing ? editor: children} ) }