@hhgtech/hhg-components
Version:
Hello Health Group common components
26 lines (25 loc) • 1.02 kB
TypeScript
import { FC } from 'react';
import { NodeType } from "../../../interfaces/types";
import { SubotFormSubmitMeta, SubotMessage, SubotNodeAction } from "../../../interfaces/types";
import SubotInlineAction from "./subotInlineAction";
export declare const SubotInlineActionBase: {
[key: string]: FC<SubotInlineActionItemProps>;
};
export interface SubotInlineActionItemProps {
node_type?: NodeType;
value?: SubotFormSubmitMeta | string;
action?: SubotNodeAction;
onChange?: (action?: any, formSubmitMeta?: SubotMessage['form_submit_meta']) => void;
active?: boolean;
htmlType?: 'radio' | 'checkbox';
formSubmitMeta?: SubotMessage['form_submit_meta'];
}
export interface SubotInlineActionProps {
htmlType?: 'radio' | 'checkbox';
actions?: Array<SubotNodeAction>;
value?: Array<string>;
onChange?: (value?: SubotNodeAction) => void;
node_type?: NodeType;
formSubmitMeta?: SubotMessage['form_submit_meta'];
}
export default SubotInlineAction;