import { View, Text } from "@tarojs/components";
import style from './index.module.less'
interface Props {
  text: string,
  onClick?: (str: string) => void
}
export default ({text, onClick}: Props) => {
  return <View onClick={()=> onClick && onClick(text)}>
      <View className={`${style.message } ${style.messageRobot} gap-10`}>
        <View className={style.messageContent}>
          <Text>{text}</Text>
        </View>
    </View>
  </View>
}


