import * as React from 'react'; import { Select, Box, Input } from '@alifd/next'; import { BehaviorActionProps, BehaviorAction } from '../types'; interface MessageActionValue { type?: string; content?: string; } interface MessageActionOptions { defaultType?: string; types: string[]; library: string; component: string; } function fillDefaultValue(value: MessageActionValue) { if (typeof value !== 'object') { console.warn('value passed to fillDefaultValue should be an object'); return; } if (!value.type) { value.type = 'notice'; } } const MessageActionContent: React.FC> = ({ value = {}, onChange, options, }) => { fillDefaultValue(value); const { types } = options; return ( 通知类型